/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 0 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin171
RA = 203.02, Dec = -5.1611
tmin = 283651201, tmax = 283910401
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='735788', job_status='RUN', time_executed='2021-09-08 01:31:18.588244', time_epoch_executed='1631089878.59' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735788/ft1_4FGL_J1332.0-0509_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735788/ft1_4FGL_J1332.0-0509_daily_bin171.fits outfile=/scratch/kocevski/735788/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin171.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=283651201.0 tmax=283910401.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.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.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/735788/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/735788/ltcube_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.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/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits
.....................!
real 16.78
user 16.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/735788/ltcube_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.fits outfile=/scratch/kocevski/735788/expmap_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.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/735788/ltcube_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.fits
.....................!
real 193.66
user 187.32
sys 5.69

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/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits outfile=/scratch/kocevski/735788/cmap_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.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.66
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits outfile=/scratch/kocevski/735788/cmap_HighResolution_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.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.62
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/735788/ft2_4FGL_J1332.0-0509_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735788/Model_4FGL_J1332.0-0509_daily_bin171.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/735788/ft1_filtered_4FGL_J1332.0-0509_daily_bin171.fits.....................!
real 66.06
user 64.50
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.90       1.0000         .10000E-03   10000.    
     2 'norm      '    .15070       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18343E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8198       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1150       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.225       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7945       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2530       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.0958       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6261       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .53609       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=   8852.708     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2753 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.90        48.544        .11393E-05   -.16045E-05
   2  norm          .36131E-01    8.6212       -.26008E-06   -.17777E-04
   3  norm          1.2165        .25494       -.15342E-07    .60577E-04
   4  Prefactor     .10000E-03    132.36       -.54999E-06** at limit **
   5  norm          .10000E-03    3.3284        .20823E-07** at limit **
   6  norm          .10000E-03    3.1078       -.13236E-06** at limit **
   7  Prefactor     3.7884        3.7759       -.28300E-05   -.31091E-04
   8  Prefactor     .10000E-03    3.3150        .19022E-06** at limit **
   9  Prefactor     .10000E-03    5.3649        .12393E-06** at limit **
  10  Prefactor     .10000E-03    2.7381        .97817E-07** at limit **
  11  norm          5.8196        1.5178        .67606E-08   -.14492E-03
  12  norm          .10000E-03    .55256        .45704E-07** at limit **
  13  norm          .10000E-03    1.0971       -.15460E-07** at limit **
  14  norm          .10000E-03    9.2113        .13133E-06** at limit **
  15  Prefactor     5.1150        3.9881        .27145E-06   -.50860E-03
  16  Prefactor     56.225        23.030        .27287E-05   -.18165E-04
  17  Prefactor     .10000E-03    12.177        .98617E-07** at limit **
  18  norm          .10000E-03    1.6478       -.10448E-06** at limit **
  19  Prefactor     6.7955        10.836        .28798E-05   -.10106E-03
  20  norm          1.2530        1.6164       -.21299E-06   -.10160E-02
  21  Prefactor     .10000E-03    21.523       -.48183E-07** at limit **
  22  norm          9.0958        9.0155       -.13261E-05    .30398E-05
  23  Normalizat    1.6261        .17762       -.66631E-06    .61011E-04
  24  Prefactor     .53609        .10872        .22433E-06   -.80197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.898
  norm       = 0.0361312
  norm       = 1.21646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.7884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.81956
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.11501
  Prefactor  = 56.2247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.79552
  norm       = 1.25304
  Prefactor  = 0.0001
  norm       = 9.09583
  Normalizat = 1.62606
  Prefactor  = 0.536091
 **********
 **   18 **HESSE 
 **********

 FCN=   8852.708     FROM HESSE     STATUS=OK           403 CALLS     3156 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.90        48.807        .38368E-04   -1.3607    
   2  norm          .36131E-01    10.965        .10819       -1.5670    
   3  norm          1.2165        .25708        .19814E-04   -1.5487    
   4  Prefactor     .10000E-03    134.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3474        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1273        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7884        3.7835        .17794E-03   -1.5319    
   8  Prefactor     .10000E-03    3.3182        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5845        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7448        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8196        1.5251        .56481E-04   -1.5225    
  12  norm          .10000E-03    .55646        .68289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0997        .96222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.2183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1150        3.9739        .15626E-03   -1.5256    
  16  Prefactor     56.225        23.010        .53498E-04   -1.4207    
  17  Prefactor     .10000E-03    12.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6574        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7955        10.736        .15393E-03   -1.5187    
  20  norm          1.2530        1.6016        .13187E-03   -1.5484    
  21  Prefactor     .10000E-03    21.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.0958        9.0135        .13289E-03   -1.5105    
  23  Normalizat    1.6261        .20706        .25232E-03   -.74295    
  24  Prefactor     .53609        .12582        .26097E-03   -1.1035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42961e-10
Minuit parameter uncertainties:
  1  48.8253
  2  1.25735
  3  0.257079
  4  0.000111188
  5  1.85243e-06
  6  1.14919e-06
  7  3.7837
  8  1.75203e-07
  9  2.46988e-05
  10  3.59414e-06
  11  1.52507
  12  9.85364e-07
  13  6.52361e-07
  14  2.76293e-06
  15  3.97415
  16  23.0139
  17  9.95724e-07
  18  4.87918e-07
  19  10.7394
  20  1.60163
  21  6.92911e-05
  22  9.01482
  23  0.207174
  24  0.125885
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.820e+00  1.525e+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:  5.361e-01  1.259e-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.626e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.85
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 4.61e-08
Energy Flux (Fixed Index): 5.29e-05 +/- 1.39e-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) = 8851.13550211
delta logL = 1.5720252971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8851.10701493
delta logL = 1.60051248459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3753       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0188       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57652       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=   8851.107     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3759        13.735        .48138E-03    .67189E-03
   2  alpha         3.0193        3.8551        .19350        .69476E-04
   3  Normalizat    1.5321        .14962        .58302E-01   -.25858E-05
   4  Prefactor     .57654        .78327E-01    .40733E-01    .27472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.37593
  alpha      = 3.0193
  Normalizat = 1.53209
  Prefactor  = 0.576544
 **********
 **   18 **HESSE 
 **********

 FCN=   8851.107     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3759        1.6074        .96276E-04   -1.5290    
   2  alpha         3.0193        .37830        .83494E-02    .20925    
   3  Normalizat    1.5321        .20798        .25781E-03   -.76881    
   4  Prefactor     .57654        .12838        .25223E-03   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87018e-09
Minuit parameter uncertainties:
  1  1.60744
  2  0.37983
  3  0.208096
  4  0.128448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735788': 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) = 8851.10701194
delta logL = 1.60051547547

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.376e+00  1.607e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.019e+00  3.798e-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:  5.765e-01  1.284e-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.532e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.34
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.02 +/- 0.38
Photon Flux (Free Index): 2.48e-07 +/- 6.69e-08
Energy Flux (Free Index): 5.15e-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/735788/cmap_HighResolution_283651201_283910401_4FGL_J1332.0-0509_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='5.15e-05', photon_flux_error='4.61e-08', dlogl='1.60e+00', energy_flux='5.29e-05', photon_flux2='2.48e-07', job_status='DONE', time_completed='2021-09-08 01:43:47.786960', photon_index_error2='0.38', photon_index2='3.02', ts='38.85', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='1.63', time_epoch_completed='1631090627.79', return_code='0', job_id='735788', GAL2='0.58', EG2='1.53', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.69e-08', ts2='42.34', photon_index='2.39' WHERE bin_id='171' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 735788: <4FGL_J1332.0-0509_daily_bin171> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin171> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:42 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31:08 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:31:08 2021
Terminated at Wed Sep  8 01:43:48 2021
Results reported at Wed Sep  8 01:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin171 203.02 -5.1611 283651201 283910401 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 :                                   746.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            786 sec.

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

