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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin871
RA = 203.02, Dec = -5.1611
tmin = 465091201, tmax = 465350401
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='739020', job_status='RUN', time_executed='2021-09-08 01:44:41.780872', time_epoch_executed='1631090681.78' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739020/ft1_4FGL_J1332.0-0509_daily_bin871.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739020/ft1_4FGL_J1332.0-0509_daily_bin871.fits outfile=/scratch/kocevski/739020/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin871.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=465091201.0 tmax=465350401.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.74
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.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/739020/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin871.fits evtable="EVENTS" outfile="/scratch/kocevski/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.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.62
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits" evtable="EVENTS" scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits sctable="SC_DATA" outfile=/scratch/kocevski/739020/ltcube_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.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/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits
.....................!
real 16.13
user 15.36
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits sctable="SC_DATA" expcube=/scratch/kocevski/739020/ltcube_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.fits outfile=/scratch/kocevski/739020/expmap_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.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/739020/ltcube_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.fits
.....................!
real 191.90
user 186.60
sys 4.76

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/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits outfile=/scratch/kocevski/739020/cmap_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits outfile=/scratch/kocevski/739020/cmap_HighResolution_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits evtable="EVENTS" scfile=/scratch/kocevski/739020/ft2_4FGL_J1332.0-0509_daily_bin871.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739020/Model_4FGL_J1332.0-0509_daily_bin871.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/739020/ft1_filtered_4FGL_J1332.0-0509_daily_bin871.fits.....................!
real 49.96
user 47.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2228       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.316       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3068       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0845       1.0000         .10000E-03   10000.    
    13 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.510       1.0000         .10000E-03   10000.    
    18 'norm      '    .24526E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-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      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4733       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92101       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=   5814.520     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2715 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.679        38.612       -.35949E-05    .27926E-05
   2  norm          .10000E-03    10.844        .15321E-05** at limit **
   3  norm          1.2111        .33938        .44366E-07   -.50369E-03
   4  Prefactor     .10000E-03    185.00       -.10892E-05** at limit **
   5  norm          6.2216        14.130        .79665E-06   -.60242E-04
   6  norm          .10000E-03    3.1449        .32391E-08** at limit **
   7  Prefactor     .10000E-03    4.7709        .10148E-06** at limit **
   8  Prefactor     .10000E-03    4.4736       -.10389E-06** at limit **
   9  Prefactor     .10000E-03    4.0421        .59131E-07** at limit **
  10  Prefactor     23.323        30.090        .22367E-06    .23973E-03
  11  norm          1.3068        1.4166       -.67194E-07   -.57207E-03
  12  norm          3.0822        6.6873       -.57213E-06    .39914E-04
  13  norm          .10000E-03    12.687       -.68158E-05** at limit **
  14  norm          12.540        19.583        .19241E-06   -.76858E-05
  15  Prefactor     5.4455        7.4941        .18205E-05    .11563E-02
  16  Prefactor     .10000E-03    14.433        .74551E-05** at limit **
  17  Prefactor     16.534        54.501        .34141E-04    .34888E-04
  18  norm          .10015E-03    6.7210       -.36070E-05** at limit **
  19  Prefactor     .10000E-03    7.0677       -.83750E-07** at limit **
  20  norm          .10000E-03    1.2087        .21970E-07** at limit **
  21  Prefactor     .10000E-03    18.879       -.14694E-05** at limit **
  22  norm          .10000E-03    29.322        .11399E-04** at limit **
  23  Normalizat    1.4732        .24433        .87581E-06    .31268E-03
  24  Prefactor     .92105        .16106       -.18168E-05    .56801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6788
  norm       = 0.0001
  norm       = 1.21109
  Prefactor  = 0.0001
  norm       = 6.22163
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3225
  norm       = 1.30682
  norm       = 3.08218
  norm       = 0.0001
  norm       = 12.5399
  Prefactor  = 5.4455
  Prefactor  = 0.0001
  Prefactor  = 16.5343
  norm       = 0.000100151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.47318
  Prefactor  = 0.921051
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.520     FROM HESSE     STATUS=OK           391 CALLS     3106 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.679        38.728        .76139E-04   -1.4655    
   2  norm          .10000E-03    10.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2111        .33990        .22016E-04   -1.5488    
   4  Prefactor     .10000E-03    186.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2216        14.106        .16092E-03   -1.5209    
   6  norm          .10000E-03    3.1453        .13207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7929        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4756        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0590        .14970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.323        29.639        .82954E-04   -1.4742    
  11  norm          1.3068        1.3939        .90301E-04   -1.5479    
  12  norm          3.0822        6.5431        .18669E-03   -1.5357    
  13  norm          .10000E-03    12.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.540        19.584        .11312E-03   -1.5000    
  15  Prefactor     5.4455        6.8056        .17216E-03   -1.5241    
  16  Prefactor     .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.534        54.289        .98569E-04   -1.4894    
  18  norm          .10015E-03    27.929        .33647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2235        .81831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    29.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4732        .29020        .28958E-03   -.78535    
  24  Prefactor     .92105        .19057        .23501E-03   -.95409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59322e-09
Minuit parameter uncertainties:
  1  38.7628
  2  2.12954e-06
  3  0.339903
  4  4.12189e-05
  5  14.1133
  6  3.09006e-07
  7  3.79372e-06
  8  2.75843e-07
  9  1.97669e-06
  10  29.6576
  11  1.39398
  12  6.54461
  13  6.26224e-05
  14  19.594
  15  6.80652
  16  1.02775e-06
  17  54.4521
  18  0.00411204
  19  3.90033e-06
  20  2.02587e-06
  21  9.17327e-06
  22  7.84205e-05
  23  0.290525
  24  0.190711
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.307e+00  1.394e+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:  9.211e-01  1.907e-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.473e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/739020/likelihoodResults_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.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) = 5814.48153973
delta logL = 0.038157879374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5814.45612851
delta logL = 0.0635691008292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83371       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94194       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5814.456     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83361        37.543        .66989E-03   -.52165E-02
   2  alpha         3.2640        2.8433        .26241E-01   -.11522E-03
   3  Normalizat    1.4326        .35315        .29294E-03   -.62056E-04
   4  Prefactor     .94196        .21241        .23278E-03   -.35091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.833607
  alpha      = 3.26401
  Normalizat = 1.43255
  Prefactor  = 0.941963
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.456     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83361        2.4979        .26796E-04   -1.5525    
   2  alpha         3.2640        3.9593        .10496E-02    .31057    
   3  Normalizat    1.4326        .31004        .11718E-04   -.79692    
   4  Prefactor     .94196        .19982        .46555E-04   -.94690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93276e-09
Minuit parameter uncertainties:
  1  2.49817
  2  3.21224
  3  0.310447
  4  0.199971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739020': 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) = 5814.45612833
delta logL = 0.0635692757178

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  8.336e-01  2.498e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.264e+00  3.212e+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:  9.420e-01  2.000e-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.433e+00  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.26 +/- 3.21
Photon Flux (Free Index): 6.23e-08 +/- 8.32e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.19e-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/739020/cmap_HighResolution_465091201_465350401_4FGL_J1332.0-0509_daily_bin871.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.18e-05', photon_flux_error='4.21e-08', dlogl='6.36e-02', energy_flux='1.19e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-08 01:55:33.593919', photon_index_error2='3.21', photon_index2='3.26', ts='1.21', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.19e-05', EG='1.47', time_epoch_completed='1631091333.59', return_code='0', job_id='739020', GAL2='0.94', EG2='1.43', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='8.32e-08', ts2='1.36', photon_index='2.39' WHERE bin_id='871' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 739020: <4FGL_J1332.0-0509_daily_bin871> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin871> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:53 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:20 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:42:20 2021
Terminated at Wed Sep  8 01:55:34 2021
Results reported at Wed Sep  8 01:55:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin871 203.02 -5.1611 465091201 465350401 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            881 sec.

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

