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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin391
RA = 203.02, Dec = -5.1611
tmin = 340675201, tmax = 340934401
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='737180', job_status='RUN', time_executed='2021-09-08 01:39:10.328817', time_epoch_executed='1631090350.33' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737180

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737180/ft1_4FGL_J1332.0-0509_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737180/ft1_4FGL_J1332.0-0509_daily_bin391.fits outfile=/scratch/kocevski/737180/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin391.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.17
user 5.86
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/737180/ltcube_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.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/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits
.....................!
real 13.56
user 13.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/737180/ltcube_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.fits outfile=/scratch/kocevski/737180/expmap_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.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/737180/ltcube_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.fits
.....................!
real 191.78
user 186.03
sys 5.19

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/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits scfile=/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits outfile=/scratch/kocevski/737180/cmap_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits scfile=/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits outfile=/scratch/kocevski/737180/cmap_HighResolution_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/737180/ft2_4FGL_J1332.0-0509_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737180/Model_4FGL_J1332.0-0509_daily_bin391.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/737180/ft1_filtered_4FGL_J1332.0-0509_daily_bin391.fits.....................!
real 48.16
user 46.70
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20712E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1582       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.273       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.179       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5050       1.0000         .10000E-03   10000.    
    12 'norm      '    .90860       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5200       1.0000         .10000E-03   10000.    
    14 'norm      '    30.347       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.5620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.357       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.668       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2464       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2297       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=   5567.332     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3100 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    24.066        .90712E-02** at limit **
   2  norm          .10000E-03    10.353        .90712E-02** at limit **
   3  norm          1.2892        .34448        .48697E-02   -.15827E-03
   4  Prefactor     .10000E-03    98.683        .90712E-02** at limit **
   5  norm          3.1601        9.6485        .57019E-02    .19975E-03
   6  norm          .10000E-03    10.070        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.7981        .90712E-02** at limit **
   8  Prefactor     .10000E-03    17.280        .90712E-02** at limit **
   9  Prefactor     15.276        14.069        .25621E-02   -.71798E-04
  10  Prefactor     21.295        46.255        .21758E-02   -.51952E-04
  11  norm          1.5049        1.8654        .87219E-02    .45430E-03
  12  norm          .87200        15.809        .70758E-01    .47967E-03
  13  norm          2.5253        29.771        .64338E-02   -.49393E-03
  14  norm          30.332        36.832        .18183E-02   -.99137E-03
  15  Prefactor     .10000E-03    7.2154        .90712E-02** at limit **
  16  Prefactor     .10000E-03    21.263        .90712E-02** at limit **
  17  Prefactor     .10001E-03    23.474        .90712E-02** at limit **
  18  norm          9.5693        9.3066        .32399E-02    .36614E-03
  19  Prefactor     13.352        20.618        .27400E-02    .48287E-03
  20  norm          .10000E-03    2.1522        .38659E-01** at limit **
  21  Prefactor     .10000E-03    40.208        .90712E-02** at limit **
  22  norm          15.656        21.155        .25297E-02    .41421E-03
  23  Normalizat    1.2462        .27556        .76900E-01   -.15442E-04
  24  Prefactor     1.2299        .17943        .51863E-01   -.70039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 1.28924
  Prefactor  = 0.000100002
  norm       = 3.16009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2756
  Prefactor  = 21.2948
  norm       = 1.5049
  norm       = 0.871997
  norm       = 2.52525
  norm       = 30.3322
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  norm       = 9.56934
  Prefactor  = 13.3516
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6564
  Normalizat = 1.24624
  Prefactor  = 1.22988
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.332     FROM HESSE     STATUS=OK           395 CALLS     3495 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    24.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2892        .34476        .21552E-04   -1.5481    
   4  Prefactor     .10000E-03    98.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1601        9.6209        .22808E-03   -1.5352    
   6  norm          .10000E-03    10.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.276        13.961        .10249E-03   -1.4926    
  10  Prefactor     21.295        52.070        .87033E-04   -1.4785    
  11  norm          1.5049        1.8439        .10668E-03   -1.5463    
  12  norm          .87200        61.388        .25655E-02   -1.5521    
  13  norm          2.5253        31.055        .25735E-03   -1.5390    
  14  norm          30.332        36.842        .72731E-04   -1.4606    
  15  Prefactor     .10000E-03    7.3252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    23.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5693        9.3029        .12960E-03   -1.5089    
  19  Prefactor     13.352        20.722        .10960E-03   -1.4977    
  20  norm          .10000E-03    3.9906        .21129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.656        21.172        .10119E-03   -1.4916    
  23  Normalizat    1.2462        .32672        .34036E-03   -.85186    
  24  Prefactor     1.2299        .21260        .22929E-03   -.85417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51627e-08
Minuit parameter uncertainties:
  1  0.000889618
  2  1.07642e-05
  3  0.344762
  4  0.000785993
  5  9.62556
  6  8.77445e-06
  7  9.91496e-06
  8  2.90383e-05
  9  13.964
  10  52.1818
  11  1.84401
  12  14.6477
  13  17.7222
  14  36.8701
  15  4.75789e-07
  16  0.000261856
  17  0.00116446
  18  9.30427
  19  20.7327
  20  7.05755e-06
  21  0.000107146
  22  21.1817
  23  0.327259
  24  0.212751
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.505e+00  1.844e+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:  1.230e+00  2.128e-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.246e+00  3.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/737180/likelihoodResults_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.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) = 5566.79633328
delta logL = 0.535372351021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5566.79576764
delta logL = 0.535937988616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95265       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7256       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2740       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=   5566.796     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95234        11.583        .12012E-01    .12168E-03
   2  alpha         3.7253        4.2420        .48151        .56539E-04
   3  Normalizat    1.1433        .70483E-01    .79785E-01    .13460E-04
   4  Prefactor     1.2740        .47385E-01    .51085E-01    .72890E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.952342
  alpha      = 3.72535
  Normalizat = 1.14329
  Prefactor  = 1.27404
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.796     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95234        2.0293        .54386E-04   -1.5513    
   2  alpha         3.7253        1.6328        .20175E-01    .51225    
   3  Normalizat    1.1433        .32846        .35319E-03   -.88374    
   4  Prefactor     1.2740        .21300        .22584E-03   -.84082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04001e-09
Minuit parameter uncertainties:
  1  2.02944
  2  1.84565
  3  0.32905
  4  0.213141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737180': 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) = 5566.79576712
delta logL = 0.53593850756

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.523e-01  2.029e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.725e+00  1.846e+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:  1.274e+00  2.131e-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.143e+00  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.73 +/- 1.85
Photon Flux (Free Index): 1.24e-07 +/- 1.07e-07
Energy Flux (Free Index): 2.07e-05 +/- 1.67e-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/737180/cmap_HighResolution_340675201_340934401_4FGL_J1332.0-0509_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-05', comment='SUCCESS', energy_flux2='2.07e-05', dlogl='5.36e-01', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-08 01:50:20.123118', photon_index_error2='1.85', photon_index2='3.73', ts='1.00', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.67e-05', EG='1.25', time_epoch_completed='1631091020.12', return_code='0', job_id='737180', GAL2='1.27', EG2='1.14', return_code2='0', photon_flux_error2='1.07e-07', ts2='2.21', photon_index='2.39' WHERE bin_id='391' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 737180: <4FGL_J1332.0-0509_daily_bin391> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin391> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:25 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:35:33 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:35:33 2021
Terminated at Wed Sep  8 01:50:20 2021
Results reported at Wed Sep  8 01:50:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin391 203.02 -5.1611 340675201 340934401 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 :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            895 sec.

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

