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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1107
RA = 203.02, Dec = -5.1611
tmin = 526262401, tmax = 526521601
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='740477', job_status='RUN', time_executed='2021-09-08 01:46:18.385372', time_epoch_executed='1631090778.39' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740477/ft1_4FGL_J1332.0-0509_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740477/ft1_4FGL_J1332.0-0509_daily_bin1107.fits outfile=/scratch/kocevski/740477/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1107.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=526262401.0 tmax=526521601.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 4.10
user 3.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.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/740477/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1107.fits evtable="EVENTS" outfile="/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/740477/ltcube_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.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/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits
.....................!
real 16.00
user 15.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/740477/ltcube_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits outfile=/scratch/kocevski/740477/expmap_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.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/740477/ltcube_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits
.....................!
real 195.37
user 188.86
sys 4.22

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/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits outfile=/scratch/kocevski/740477/cmap_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.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.58
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits outfile=/scratch/kocevski/740477/cmap_HighResolution_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740477/Model_4FGL_J1332.0-0509_daily_bin1107.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/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits.....................!
real 56.65
user 54.78
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits', '/scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits', expMap='/scratch/kocevski/740477/expmap_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits', expCube='/scratch/kocevski/740477/ltcube_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740477/Model_4FGL_J1332.0-0509_daily_bin1107.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/740477/ft1_filtered_4FGL_J1332.0-0509_daily_bin1107.fits
Spacecraft file(s): /scratch/kocevski/740477/ft2_4FGL_J1332.0-0509_daily_bin1107.fits
Exposure map: /scratch/kocevski/740477/expmap_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits
Exposure cube: /scratch/kocevski/740477/ltcube_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740477/Model_4FGL_J1332.0-0509_daily_bin1107.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) = 6727.5779733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5373       1.0000         .10000E-03   10000.    
     5 'norm      '    34.417       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2553       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2395       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2545       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4081       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7172       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74888       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6727.575     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2648 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.481        .72975E-07** at limit **
   2  norm          .10000E-03    11.477       -.57841E-08** at limit **
   3  norm          1.7713        .37797        .30694E-08   -.11506E-02
   4  Prefactor     1.5238        395.78        .15260E-05   -.39465E-04
   5  norm          34.416        15.214       -.34631E-07   -.14905E-03
   6  norm          .10000E-03    6.5081        .75141E-07** at limit **
   7  Prefactor     .10000E-03    5.4368       -.83084E-06** at limit **
   8  Prefactor     13.087        18.204        .21046E-06   -.10827E-03
   9  Prefactor     16.499        11.305       -.64577E-06   -.32333E-03
  10  Prefactor     3.2079        79.979        .21609E-04   -.24189E-03
  11  norm          1.2399        1.4251        .14693E-06    .24076E-04
  12  norm          7.2494        6.4274       -.49804E-05   -.21204E-02
  13  norm          2.3978        8.4419        .10103E-04   -.66118E-03
  14  norm          .10000E-03    10.522        .40804E-07** at limit **
  15  Prefactor     .10000E-03    1.3112       -.38876E-07** at limit **
  16  Prefactor     .10000E-03    13.561        .26204E-06** at limit **
  17  Prefactor     .10000E-03    32.291       -.39718E-07** at limit **
  18  norm          .10000E-03    2.0303        .53135E-07** at limit **
  19  Prefactor     .10000E-03    6.6943        .19313E-06** at limit **
  20  norm          .10000E-03    .74856        .88942E-07** at limit **
  21  Prefactor     .10000E-03    11.678        .51038E-07** at limit **
  22  norm          .10000E-03    10.077        .14584E-06** at limit **
  23  Normalizat    1.7173        .24387        .84691E-06   -.37776E-03
  24  Prefactor     .74882        .14815       -.29253E-05   -.47947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.77127
  Prefactor  = 1.52385
  norm       = 34.4157
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0873
  Prefactor  = 16.4992
  Prefactor  = 3.20786
  norm       = 1.23988
  norm       = 7.24942
  norm       = 2.39781
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.71733
  Prefactor  = 0.748818
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.575     FROM HESSE     STATUS=OK           389 CALLS     3037 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7713        .37864        .22027E-04   -1.5442    
   4  Prefactor     1.5238        403.92        .34399E-03   -1.5461    
   5  norm          34.416        15.168        .68307E-04   -1.4534    
   6  norm          .10000E-03    6.5494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.4595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.087        18.237        .11071E-03   -1.4984    
   9  Prefactor     16.499        11.331        .98595E-04   -1.4895    
  10  Prefactor     3.2079        81.107        .22447E-03   -1.5350    
  11  norm          1.2399        1.4011        .99967E-04   -1.5485    
  12  norm          7.2494        6.4679        .12395E-03   -1.5169    
  13  norm          2.3978        8.5481        .13191E-02   -1.5398    
  14  norm          .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3160        .91705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0380        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .75659        .69285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7173        .28729        .28400E-03   -.71842    
  24  Prefactor     .74882        .17285        .25775E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69986e-09
Minuit parameter uncertainties:
  1  5.81796e-05
  2  9.18135e-05
  3  0.378637
  4  49.9613
  5  15.1698
  6  3.19638e-05
  7  6.47537e-05
  8  18.2447
  9  11.3324
  10  32.3086
  11  1.40112
  12  6.46851
  13  8.55241
  14  3.65201e-05
  15  4.48588e-07
  16  7.17984e-05
  17  8.36725e-05
  18  3.89053e-06
  19  5.3833e-05
  20  1.65434e-06
  21  9.56851e-05
  22  0.000134033
  23  0.287573
  24  0.172974
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.240e+00  1.401e+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.488e-01  1.730e-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.717e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.27e-05

TS (Fixed Index): 1.04
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740477/likelihoodResults_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.49803115
delta logL = 0.0768305399051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6727.49044938
delta logL = 0.0844123077122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0920       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75564       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=   6727.490     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0911        31.869        .11432E-01    .80498E-03
   2  alpha         2.7987        2.8034        .41528        .22231E-04
   3  Normalizat    1.7020        .72564E-01    .64433E-01    .17059E-05
   4  Prefactor     .75564        .47830E-01    .43137E-01    .17941E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09107
  alpha      = 2.79872
  Normalizat = 1.702
  Prefactor  = 0.755643
 **********
 **   18 **HESSE 
 **********

 FCN=   6727.490     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0911        1.4465        .86974E-04   -1.5499    
   2  alpha         2.7987        1.0618        .24173E-01    .11977    
   3  Normalizat    1.7020        .27530        .28497E-03   -.72250    
   4  Prefactor     .75564        .17281        .25672E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7511e-12
Minuit parameter uncertainties:
  1  1.44659
  2  1.09715
  3  0.275546
  4  0.172938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740477': 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) = 6727.49044906
delta logL = 0.0844126243255

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.091e+00  1.447e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.799e+00  1.097e+00  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.556e-01  1.729e-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.702e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.80 +/- 1.10
Photon Flux (Free Index): 4.88e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.21e-05

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/740477/cmap_HighResolution_526262401_526521601_4FGL_J1332.0-0509_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.13e-05', photon_flux_error='4.24e-08', dlogl='8.44e-02', energy_flux='1.13e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-09-08 01:58:08.351642', photon_index_error2='1.10', photon_index2='2.80', ts='1.04', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.21e-05', EG='1.72', time_epoch_completed='1631091488.35', return_code='0', job_id='740477', GAL2='0.76', EG2='1.70', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.34e-08', ts2='1.22', photon_index='2.39' WHERE bin_id='1107' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:58:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 740477: <4FGL_J1332.0-0509_daily_bin1107> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1107> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:46:00 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:46:04 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:46:04 2021
Terminated at Wed Sep  8 01:58:09 2021
Results reported at Wed Sep  8 01:58:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1107 203.02 -5.1611 526262401 526521601 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            729 sec.

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

