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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin606
RA = 203.02, Dec = -5.1611
tmin = 396403201, tmax = 396662401
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='737493', job_status='RUN', time_executed='2021-09-08 01:40:28.491643', time_epoch_executed='1631090428.49' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737493/ft1_4FGL_J1332.0-0509_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737493/ft1_4FGL_J1332.0-0509_daily_bin606.fits outfile=/scratch/kocevski/737493/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin606.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=396403201.0 tmax=396662401.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.68
user 4.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/737493/ltcube_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.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/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits
.....................!
real 14.72
user 14.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/737493/ltcube_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.fits outfile=/scratch/kocevski/737493/expmap_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.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/737493/ltcube_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.fits
.....................!
real 193.84
user 188.01
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/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits scfile=/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits outfile=/scratch/kocevski/737493/cmap_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits scfile=/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits outfile=/scratch/kocevski/737493/cmap_HighResolution_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/737493/ft2_4FGL_J1332.0-0509_daily_bin606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737493/Model_4FGL_J1332.0-0509_daily_bin606.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/737493/ft1_filtered_4FGL_J1332.0-0509_daily_bin606.fits.....................!
real 52.66
user 50.52
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.232       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.419       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1156       1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4747       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.111       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.564       1.0000         .10000E-03   10000.    
    14 'norm      '    11.976       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12438E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5238       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0650       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.382       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6182       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67009       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=   6323.618     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2699 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.234        46.475        .21731E-02   -.29408E-03
   2  norm          .10000E-03    9.5208        .90712E-02** at limit **
   3  norm          2.2336        .40640        .45460E-02   -.95742E-04
   4  Prefactor     53.420        62.847        .13719E-02   -.44881E-03
   5  norm          7.1166        13.000        .37595E-02   -.65079E-04
   6  norm          .10000E-03    22.600        .90712E-02** at limit **
   7  Prefactor     3.4747        9.8418        .54233E-02    .40110E-03
   8  Prefactor     36.588        20.384        .16564E-02    .18508E-03
   9  Prefactor     7.6595        9.5184        .36225E-02    .56620E-03
  10  Prefactor     .10000E-03    19.618        .90712E-02** at limit **
  11  norm          15.111        2.8856        .25759E-02   -.80649E-04
  12  norm          .10000E-03    2.1220        .90712E-02** at limit **
  13  norm          15.558        9.8203        .25381E-02    .69165E-03
  14  norm          11.977        17.538        .28939E-02    .74099E-04
  15  Prefactor     .10000E-03    5.3661        .90712E-02** at limit **
  16  Prefactor     29.673        23.940        .18388E-02    .15942E-03
  17  Prefactor     .10000E-03    143.00        .90712E-02** at limit **
  18  norm          .10000E-03    2.1050        .90712E-02** at limit **
  19  Prefactor     1.5249        10.245        .86501E-02    .77226E-03
  20  norm          3.0654        2.5062        .57927E-02    .86758E-04
  21  Prefactor     .10000E-03    41.501        .90712E-02** at limit **
  22  norm          19.382        13.837        .22744E-02   -.30616E-04
  23  Normalizat    1.6182        .25469        .68235E-01   -.47550E-05
  24  Prefactor     .67000        .15788        .63977E-01    .17290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2336
  norm       = 0.0001
  norm       = 2.23358
  Prefactor  = 53.4196
  norm       = 7.11658
  norm       = 0.0001
  Prefactor  = 3.47468
  Prefactor  = 36.588
  Prefactor  = 7.65952
  Prefactor  = 0.0001
  norm       = 15.1112
  norm       = 0.0001
  norm       = 15.5578
  norm       = 11.9767
  Prefactor  = 0.0001
  Prefactor  = 29.673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.52489
  norm       = 3.06535
  Prefactor  = 0.0001
  norm       = 19.3822
  Normalizat = 1.61819
  Prefactor  = 0.669997
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.618     FROM HESSE     STATUS=OK           393 CALLS     3092 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.234        46.681        .86925E-04   -1.4786    
   2  norm          .10000E-03    9.5234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2336        .40941        .20087E-04   -1.5409    
   4  Prefactor     53.420        62.861        .54878E-04   -1.4245    
   5  norm          7.1166        12.974        .15038E-03   -1.5174    
   6  norm          .10000E-03    23.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4747        9.8157        .21693E-03   -1.5335    
   8  Prefactor     36.588        20.424        .66258E-04   -1.4497    
   9  Prefactor     7.6595        9.5107        .14490E-03   -1.5154    
  10  Prefactor     .10000E-03    19.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.111        2.8960        .56070E-04   -1.4930    
  12  norm          .10000E-03    2.1389        .11291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.558        9.7989        .10152E-03   -1.4919    
  14  norm          11.977        17.537        .11576E-03   -1.5016    
  15  Prefactor     .10000E-03    5.4595        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.673        23.940        .73554E-04   -1.4618    
  17  Prefactor     .10000E-03    143.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1072        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5249        10.204        .34601E-03   -1.5461    
  20  norm          3.0654        2.5082        .10997E-03   -1.5358    
  21  Prefactor     .10000E-03    41.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.382        13.838        .90976E-04   -1.4827    
  23  Normalizat    1.6182        .30452        .30183E-03   -.74509    
  24  Prefactor     .67000        .18697        .28305E-03   -1.0471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43453e-09
Minuit parameter uncertainties:
  1  46.7617
  2  1.66309e-05
  3  0.409408
  4  62.9396
  5  12.9787
  6  0.000107686
  7  9.82025
  8  20.4277
  9  9.51253
  10  2.57952e-05
  11  2.896
  12  6.45375e-07
  13  9.79994
  14  17.5445
  15  1.30548e-06
  16  23.9479
  17  0.000433848
  18  1.55763e-06
  19  7.89083
  20  2.50831
  21  0.000193496
  22  13.8401
  23  0.304873
  24  0.187146
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.511e+01  2.896e+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:  6.700e-01  1.871e-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.618e+00  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 81.36
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.57e-07 +/- 8.76e-08
Energy Flux (Fixed Index): 1.37e-04 +/- 2.63e-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) = 6323.33076094
delta logL = 0.287521184481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6323.30551919
delta logL = 0.312762936277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.762       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2109       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64777       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=   6323.306     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.765        3.6231        .25221E-02    .13342E-04
   2  alpha         2.2112        .26029        .15466        .22539E-04
   3  Normalizat    1.6709        .25107        .67495E-01    .52171E-05
   4  Prefactor     .64775        .15674        .64970E-01    .25630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7646
  alpha      = 2.2112
  Normalizat = 1.67087
  Prefactor  = 0.647753
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.306     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.765        3.1305        .59034E-04   -1.4914    
   2  alpha         2.2112        .23044        .66934E-03   -.11578    
   3  Normalizat    1.6709        .29986        .29854E-03   -.73084    
   4  Prefactor     .64775        .18582        .28747E-03   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72781e-14
Minuit parameter uncertainties:
  1  3.13054
  2  0.230776
  3  0.300187
  4  0.185999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737493': 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) = 6323.30551572
delta logL = 0.31276640256

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.576e+01  3.131e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.211e+00  2.308e-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:  6.478e-01  1.860e-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.671e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 80.86
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.21 +/- 0.23
Photon Flux (Free Index): 4.09e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.44e-04 +/- 3.00e-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/737493/cmap_HighResolution_396403201_396662401_4FGL_J1332.0-0509_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-07', energy_flux2='1.44e-04', photon_flux_error='8.76e-08', dlogl='3.13e-01', energy_flux='1.37e-04', photon_flux2='4.09e-07', job_status='DONE', time_completed='2021-09-08 01:50:47.803044', photon_index_error2='0.23', photon_index2='2.21', ts='81.36', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='1.62', time_epoch_completed='1631091047.8', return_code='0', job_id='737493', GAL2='0.65', EG2='1.67', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='1.02e-07', ts2='80.86', photon_index='2.39' WHERE bin_id='606' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 737493: <4FGL_J1332.0-0509_daily_bin606> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin606 203.02 -5.1611 396403201 396662401 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 :                                   616.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            901 sec.

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

