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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin903
RA = 203.02, Dec = -5.1611
tmin = 473385601, tmax = 473644801
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='740153', job_status='RUN', time_executed='2021-09-08 01:47:44.790774', time_epoch_executed='1631090864.79' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740153

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740153/ft1_4FGL_J1332.0-0509_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740153/ft1_4FGL_J1332.0-0509_daily_bin903.fits outfile=/scratch/kocevski/740153/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin903.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=473385601.0 tmax=473644801.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.34
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/740153/ltcube_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.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/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits
.....................!
real 15.70
user 15.16
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/740153/ltcube_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.fits outfile=/scratch/kocevski/740153/expmap_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.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/740153/ltcube_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.fits
.....................!
real 193.75
user 186.41
sys 6.39

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/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits scfile=/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits outfile=/scratch/kocevski/740153/cmap_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits scfile=/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits outfile=/scratch/kocevski/740153/cmap_HighResolution_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/740153/ft2_4FGL_J1332.0-0509_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740153/Model_4FGL_J1332.0-0509_daily_bin903.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/740153/ft1_filtered_4FGL_J1332.0-0509_daily_bin903.fits.....................!
real 65.71
user 64.11
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9587       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2782       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.280       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1629       1.0000         .10000E-03   10000.    
    13 'norm      '    .73964       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3856       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2931       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9609       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4985       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88317       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8205.906     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2734 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    10.237         .0000    ** at limit **
   2  norm          .10001E-03    8.5467         .0000    ** at limit **
   3  norm          1.9587        .31877         .0000        .21378E-03
   4  Prefactor     .10000E-03    78.767         .0000    ** at limit **
   5  norm          6.2772        10.199         .0000       -.14141E-03
   6  norm          3.0753        8.0807         .0000        .55054E-02
   7  Prefactor     .10001E-03    9.8000         .0000    ** at limit **
   8  Prefactor     4.5794        17.227         .0000       -.41701E-03
   9  Prefactor     9.0741        9.2338         .0000        .23240E-02
  10  Prefactor     42.274        31.243         .0000        .32845E-02
  11  norm          .10000E-03    .55065         .0000    ** at limit **
  12  norm          4.1619        6.0114         .0000        .12067E-01
  13  norm          .74278        9.9244         .0000        .20926E-02
  14  norm          .10000E-03    7.4248         .0000    ** at limit **
  15  Prefactor     11.517        5.8081         .0000        .48962E-03
  16  Prefactor     4.3870        28.928         .0000       -.15017E-03
  17  Prefactor     .10000E-03    14.417         .0000    ** at limit **
  18  norm          2.2940        4.9297         .0000        .98109E-03
  19  Prefactor     6.9546        13.517         .0000       -.12375E-02
  20  norm          .10000E-03    .98108         .0000    ** at limit **
  21  Prefactor     .10002E-03    11.517         .0000    ** at limit **
  22  norm          .10000E-03    4.9329         .0000    ** at limit **
  23  Normalizat    1.4985        .21983         .0000       -.31347E-04
  24  Prefactor     .88317        .13765         .0000       -.20579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 0.000100009
  norm       = 1.95869
  Prefactor  = 0.000100005
  norm       = 6.27721
  norm       = 3.07532
  Prefactor  = 0.00010001
  Prefactor  = 4.57942
  Prefactor  = 9.07405
  Prefactor  = 42.2741
  norm       = 0.0001
  norm       = 4.16192
  norm       = 0.742781
  norm       = 0.0001
  Prefactor  = 11.5166
  Prefactor  = 4.38701
  Prefactor  = 0.000100001
  norm       = 2.29396
  Prefactor  = 6.95463
  norm       = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.0001
  Normalizat = 1.49853
  Prefactor  = 0.883166
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.906     FROM HESSE     STATUS=OK           397 CALLS     3131 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    8.5513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9587        .31962        .19647E-04   -1.5428    
   4  Prefactor     .10000E-03    78.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2772        10.190        .16020E-03   -1.5207    
   6  norm          3.0753        8.0688        .11566E-02   -1.5357    
   7  Prefactor     .10001E-03    9.9910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5794        17.270        .18794E-03   -1.5280    
   9  Prefactor     9.0741        9.2542        .66527E-03   -1.5105    
  10  Prefactor     42.274        30.858        .61651E-04   -1.4407    
  11  norm          .10000E-03    .57454        .13109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1619        5.8608        .86188E-03   -1.5300    
  13  norm          .74278        9.1895        .48563E-03   -1.5536    
  14  norm          .10000E-03    7.4257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.517        5.7878        .11804E-03   -1.5029    
  16  Prefactor     4.3870        28.846        .19232E-03   -1.5289    
  17  Prefactor     .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2940        4.8883        .27105E-03   -1.5405    
  19  Prefactor     6.9546        13.479        .15206E-03   -1.5180    
  20  norm          .10000E-03    1.0001        .87578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4985        .26043        .30035E-03   -.77820    
  24  Prefactor     .88317        .16154        .24697E-03   -.96732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72271e-08
Minuit parameter uncertainties:
  1  0.000551689
  2  0.000560772
  3  0.319622
  4  0.00123338
  5  10.1926
  6  8.07167
  7  0.000641215
  8  17.2887
  9  9.25567
  10  30.8695
  11  1.58241e-06
  12  5.86165
  13  5.22588
  14  9.9022e-05
  15  5.7881
  16  22.5142
  17  0.000201606
  18  4.88919
  19  13.4847
  20  8.28053e-06
  21  0.000964547
  22  1.01378e-05
  23  0.260661
  24  0.16163
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.582e-06  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:  8.832e-01  1.616e-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.499e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740153/likelihoodResults_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.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) = 8205.91382076
delta logL = -0.00819762844003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8205.90562448
delta logL = -1.34831861942e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4062       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88323       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=   8205.906     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      212 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .80548        .21519E-01** at limit **
   2  alpha         3.1764        2.8235        .41188        .36489E-07
   3  Normalizat    1.4985        .77602E-02    .67897E-01    .16049E-04
   4  Prefactor     .88317        .50893E-02    .44791E-01    .18852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.17638
  Normalizat = 1.49852
  Prefactor  = 0.883168
 **********
 **   18 **HESSE 
 **********

 FCN=   8205.906     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8844        .11069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1764        3.4038        .16475        .27397    
   3  Normalizat    1.4985        .24321        .30035E-03   -.77820    
   4  Prefactor     .88317        .15961        .24697E-03   -.96732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38981e-12
Minuit parameter uncertainties:
  1  1.57037e-06
  2  208.316
  3  0.243402
  4  0.159695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740153': 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) = 8205.9056061
delta logL = 1.7030917661e-05

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.570e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.176e+00  2.083e+02  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:  8.832e-01  1.597e-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.499e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.020 -5.161

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/740153/cmap_HighResolution_473385601_473644801_4FGL_J1332.0-0509_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-08 02:01:23.994972', job_id='740153', GAL2='0.88', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1631091684.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.70e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='903' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 740153: <4FGL_J1332.0-0509_daily_bin903> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin903> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:32 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:35 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:45:35 2021
Terminated at Wed Sep  8 02:01:25 2021
Results reported at Wed Sep  8 02:01:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin903 203.02 -5.1611 473385601 473644801 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 :                                   790.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            953 sec.

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

