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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin731
RA = 203.02, Dec = -5.1611
tmin = 428803201, tmax = 429062401
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='738792', job_status='RUN', time_executed='2021-09-08 01:43:43.724920', time_epoch_executed='1631090623.72' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738792/ft1_4FGL_J1332.0-0509_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738792/ft1_4FGL_J1332.0-0509_daily_bin731.fits outfile=/scratch/kocevski/738792/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin731.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=428803201.0 tmax=429062401.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.79
user 6.36
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.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/738792/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/738792/ltcube_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.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/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits
.....................!
real 17.02
user 16.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/738792/ltcube_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.fits outfile=/scratch/kocevski/738792/expmap_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.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/738792/ltcube_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.fits
.....................!
real 195.08
user 188.72
sys 4.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/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits outfile=/scratch/kocevski/738792/cmap_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits outfile=/scratch/kocevski/738792/cmap_HighResolution_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.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/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/738792/ft2_4FGL_J1332.0-0509_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738792/Model_4FGL_J1332.0-0509_daily_bin731.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/738792/ft1_filtered_4FGL_J1332.0-0509_daily_bin731.fits.....................!
real 73.43
user 71.65
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5304       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.516       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5915       1.0000         .10000E-03   10000.    
     6 'norm      '    .22172E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3256       1.0000         .10000E-03   10000.    
    12 'norm      '    .53427E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5630       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6588       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9439       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1687       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4357       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95031       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=   9973.182     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2726 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.347       -.31802E-05** at limit **
   2  norm          .10000E-03    22.371       -.11847E-06** at limit **
   3  norm          3.5304        .47983       -.76393E-07    .27116E-02
   4  Prefactor     15.338        209.12        .45008E-04   -.22375E-04
   5  norm          5.6043        17.041       -.53263E-05   -.14688E-03
   6  norm          .10006E-03    8.4498       -.10478E-05** at limit **
   7  Prefactor     .10000E-03    3.5830       -.25865E-07** at limit **
   8  Prefactor     5.0855        10.895        .84688E-06    .13636E-05
   9  Prefactor     .78290        6.5571       -.68189E-06    .23632E-03
  10  Prefactor     .10000E-03    7.8105       -.11055E-06** at limit **
  11  norm          2.3255        1.2703        .29455E-07    .11728E-03
  12  norm          .32385E-01    1.2799       -.16272E-06    .39470E-03
  13  norm          5.5777        4.5611        .28220E-06    .91884E-04
  14  norm          1.2461        31.421        .20879E-04    .45437E-04
  15  Prefactor     7.4001        3.9017        .31341E-07    .24928E-04
  16  Prefactor     .10000E-03    21.275        .19477E-05** at limit **
  17  Prefactor     2.6557        44.885        .19624E-05   -.86286E-07
  18  norm          .10000E-03    1.7721        .16034E-07** at limit **
  19  Prefactor     .10000E-03    3.3190        .35106E-07** at limit **
  20  norm          4.9437        2.0451        .60494E-07   -.11020E-04
  21  Prefactor     .10000E-03    6.6505        .75480E-07** at limit **
  22  norm          6.1682        7.6110        .10408E-06   -.14525E-05
  23  Normalizat    1.4356        .20339        .38514E-06   -.15623E-04
  24  Prefactor     .95045        .12562       -.14537E-05   -.57300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.53043
  Prefactor  = 15.3384
  norm       = 5.60426
  norm       = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 5.08554
  Prefactor  = 0.782903
  Prefactor  = 0.0001
  norm       = 2.32555
  norm       = 0.032385
  norm       = 5.57769
  norm       = 1.24607
  Prefactor  = 7.40014
  Prefactor  = 0.0001
  Prefactor  = 2.65573
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.94368
  Prefactor  = 0.0001
  norm       = 6.16819
  Normalizat = 1.43563
  Prefactor  = 0.950452
 **********
 **   18 **HESSE 
 **********

 FCN=   9973.182     FROM HESSE     STATUS=OK           411 CALLS     3137 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    22.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5304        .48134        .22977E-04   -1.5332    
   4  Prefactor     15.338        210.61        .10168E-03   -1.4924    
   5  norm          5.6043        16.986        .84947E-03   -1.5234    
   6  norm          .10006E-03    38.540        .54855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0855        10.892        .89149E-03   -1.5257    
   9  Prefactor     .78290        24.724        .45641E-02   -1.5531    
  10  Prefactor     .10000E-03    7.8486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3255        1.2671        .79013E-04   -1.5403    
  12  norm          .32385E-01    2.5158        .37174E-01   -1.5672    
  13  norm          5.5777        4.6861        .85168E-03   -1.5236    
  14  norm          1.2461        31.514        .20046E-02   -1.5485    
  15  Prefactor     7.4001        3.8979        .13664E-03   -1.5164    
  16  Prefactor     .10000E-03    21.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6557        45.173        .24998E-03   -1.5382    
  18  norm          .10000E-03    1.7908        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3274        .17766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9437        2.0465        .87988E-04   -1.5263    
  21  Prefactor     .10000E-03    6.6543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.1682        7.6105        .80818E-03   -1.5211    
  23  Normalizat    1.4356        .24056        .31042E-03   -.79604    
  24  Prefactor     .95045        .14808        .23951E-03   -.94400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82882e-09
Minuit parameter uncertainties:
  1  5.20522e-05
  2  6.20144e-05
  3  0.481336
  4  114.166
  5  17.0007
  6  0.00306684
  7  4.47101e-06
  8  10.8964
  9  8.80268
  10  1.32327e-05
  11  1.26709
  12  0.570012
  13  4.68643
  14  12.5398
  15  3.89805
  16  1.04409e-05
  17  21.925
  18  1.92195e-06
  19  2.00389e-06
  20  2.04657
  21  1.81894e-06
  22  7.61171
  23  0.240749
  24  0.148141
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.326e+00  1.267e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.505e-01  1.481e-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.436e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.23
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.15e-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) = 9973.14937715
delta logL = 0.0328552865158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9973.14244761
delta logL = 0.0397848268585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1866       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1514       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94165       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=   9973.142     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1835        2.0976        .69588E-02    .31709E-03
   2  alpha         2.1507        1.0043        .41669       -.38444E-04
   3  Normalizat    1.4584        .19990        .69718E-01    .14870E-04
   4  Prefactor     .94186        .12555        .45534E-01   -.69967E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18347
  alpha      = 2.15072
  Normalizat = 1.45842
  Prefactor  = 0.941856
 **********
 **   18 **HESSE 
 **********

 FCN=   9973.142     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1835        1.4372        .81665E-04   -1.5412    
   2  alpha         2.1507        .83318        .23266E-01   -.14017    
   3  Normalizat    1.4584        .23633        .30844E-03   -.78953    
   4  Prefactor     .94186        .14706        .24048E-03   -.94693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20778e-09
Minuit parameter uncertainties:
  1  1.43723
  2  0.849772
  3  0.236506
  4  0.147119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738792': 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) = 9973.14244216
delta logL = 0.0397902738368

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.183e+00  1.437e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.151e+00  8.498e-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:  9.419e-01  1.471e-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.458e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.15 +/- 0.85
Photon Flux (Free Index): 5.40e-08 +/- 6.07e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.18e-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/738792/cmap_HighResolution_428803201_429062401_4FGL_J1332.0-0509_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='2.03e-05', photon_flux_error='3.83e-08', dlogl='3.98e-02', energy_flux='2.12e-05', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-08 01:57:03.005186', photon_index_error2='0.85', photon_index2='2.15', ts='7.23', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.44', time_epoch_completed='1631091423.01', return_code='0', job_id='738792', GAL2='0.94', EG2='1.46', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.07e-08', ts2='7.27', photon_index='2.39' WHERE bin_id='731' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 738792: <4FGL_J1332.0-0509_daily_bin731> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin731> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:35 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:41:31 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:41:31 2021
Terminated at Wed Sep  8 01:57:03 2021
Results reported at Wed Sep  8 01:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin731 203.02 -5.1611 428803201 429062401 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            988 sec.

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

