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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin543
RA = 203.02, Dec = -5.1611
tmin = 380073601, tmax = 380332801
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='737405', job_status='RUN', time_executed='2021-09-08 01:39:58.363102', time_epoch_executed='1631090398.36' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737405/ft1_4FGL_J1332.0-0509_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737405/ft1_4FGL_J1332.0-0509_daily_bin543.fits outfile=/scratch/kocevski/737405/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin543.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=380073601.0 tmax=380332801.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.69
user 4.29
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/737405/ltcube_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.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/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits
.....................!
real 17.38
user 16.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/737405/ltcube_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.fits outfile=/scratch/kocevski/737405/expmap_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.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/737405/ltcube_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.fits
.....................!
real 191.96
user 186.33
sys 5.23

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/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits scfile=/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits outfile=/scratch/kocevski/737405/cmap_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.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/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits scfile=/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits outfile=/scratch/kocevski/737405/cmap_HighResolution_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/737405/ft2_4FGL_J1332.0-0509_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737405/Model_4FGL_J1332.0-0509_daily_bin543.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/737405/ft1_filtered_4FGL_J1332.0-0509_daily_bin543.fits.....................!
real 62.17
user 60.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4906       1.0000         .10000E-03   10000.    
     3 'norm      '    .57781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.425       1.0000         .10000E-03   10000.    
     5 'norm      '    31.345       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0506       1.0000         .10000E-03   10000.    
    12 'norm      '    10.334       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5666       1.0000         .10000E-03   10000.    
    14 'norm      '    10.586       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86417       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4030       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    42.603       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90323       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0078       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=   8687.945     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2707 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.419       -.95092E-07** at limit **
   2  norm          1.4905        27.210       -.23475E-06   -.69682E-05
   3  norm          .57780        .19896        .61501E-07    .30293E-03
   4  Prefactor     32.414        50.698       -.14391E-04   -.33022E-05
   5  norm          31.344        11.331        .51065E-06    .16469E-04
   6  norm          5.2669        7.8276       -.25496E-06   -.38335E-05
   7  Prefactor     .10000E-03    2.5582        .12530E-07** at limit **
   8  Prefactor     8.7076        9.5720       -.32315E-06    .69787E-05
   9  Prefactor     10.988        5.9181       -.90978E-06    .49865E-05
  10  Prefactor     .10000E-03    10.315       -.77339E-06** at limit **
  11  norm          2.0503        1.2977       -.17115E-07    .29404E-04
  12  norm          10.336        3.3095       -.41725E-07    .99539E-04
  13  norm          2.5666        1.4036        .93529E-07   -.10059E-02
  14  norm          10.585        26.303       -.86030E-06   -.15487E-06
  15  Prefactor     3.8890        3.1045       -.78221E-07   -.12215E-04
  16  Prefactor     12.064        22.236       -.13172E-05    .24891E-04
  17  Prefactor     .10000E-03    9.4726       -.11403E-06** at limit **
  18  norm          .10000E-03    2.3162       -.64349E-08** at limit **
  19  Prefactor     .92084        8.6771       -.22748E-06    .48864E-04
  20  norm          1.4030        1.1744       -.30900E-07   -.14759E-04
  21  Prefactor     .10000E-03    9.6180        .70237E-06** at limit **
  22  norm          42.604        18.158        .12817E-06    .35056E-05
  23  Normalizat    .90348        .18802        .14677E-05    .64433E-05
  24  Prefactor     1.0076        .12167       -.79030E-07    .11400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.49049
  norm       = 0.577797
  Prefactor  = 32.4145
  norm       = 31.3437
  norm       = 5.26687
  Prefactor  = 0.0001
  Prefactor  = 8.70755
  Prefactor  = 10.9882
  Prefactor  = 0.0001
  norm       = 2.05028
  norm       = 10.3359
  norm       = 2.56656
  norm       = 10.5854
  Prefactor  = 3.88904
  Prefactor  = 12.0635
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.920837
  norm       = 1.40298
  Prefactor  = 0.0001
  norm       = 42.604
  Normalizat = 0.903481
  Prefactor  = 1.00762
 **********
 **   18 **HESSE 
 **********

 FCN=   8687.945     FROM HESSE     STATUS=OK           407 CALLS     3114 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4905        27.462        .35113E-03   -1.5464    
   3  norm          .57780        .19757        .23069E-04   -1.5556    
   4  Prefactor     32.414        50.712        .70368E-04   -1.4569    
   5  norm          31.344        11.337        .71567E-04   -1.4588    
   6  norm          5.2669        7.8286        .17515E-03   -1.5249    
   7  Prefactor     .10000E-03    2.5676        .14557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7076        9.5790        .13583E-03   -1.5118    
   9  Prefactor     10.988        5.9198        .12086E-03   -1.5045    
  10  Prefactor     .10000E-03    10.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0503        1.2940        .79597E-04   -1.5422    
  12  norm          10.336        3.6743        .91066E-04   -1.5065    
  13  norm          2.5666        6.1801        .12740E-02   -1.5388    
  14  norm          10.585        26.349        .12314E-03   -1.5057    
  15  Prefactor     3.8890        3.1008        .14061E-03   -1.5314    
  16  Prefactor     12.064        21.801        .11536E-03   -1.5013    
  17  Prefactor     .10000E-03    9.4764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3495        .13841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92084        30.503        .47821E-02   -1.5516    
  20  norm          1.4030        1.1806        .89717E-04   -1.5471    
  21  Prefactor     .10000E-03    9.6316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          42.604        18.164        .61418E-04   -1.4402    
  23  Normalizat    .90348        .22128        .31764E-03   -.96338    
  24  Prefactor     1.0076        .14498        .20640E-03   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71633e-09
Minuit parameter uncertainties:
  1  3.15632e-05
  2  12.8019
  3  0.197573
  4  50.78
  5  11.3376
  6  7.83014
  7  7.83515e-07
  8  9.58071
  9  5.92015
  10  2.04897e-06
  11  1.29404
  12  3.67441
  13  6.18165
  14  26.3776
  15  3.1009
  16  21.815
  17  2.04652e-06
  18  2.0999e-06
  19  10.605
  20  1.1806
  21  1.24956e-06
  22  18.1668
  23  0.221502
  24  0.145037
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.050e+00  1.294e+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.008e+00  1.450e-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:  9.035e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.18e-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) = 8687.33932304
delta logL = 0.605468071191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8687.32506073
delta logL = 0.619730390768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1993       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4119       1.0000          .0000       5.0000    
     3 'Normalizat'    .83010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   8687.325     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1988        7.6572        .10367E-01    .95627E-03
   2  alpha         3.4129        4.1770        .37053        .74851E-04
   3  Normalizat    .83001        .53620E-01    .74489E-01    .31618E-04
   4  Prefactor     1.0437        .36726E-01    .40301E-01    .34319E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19882
  alpha      = 3.41288
  Normalizat = 0.830009
  Prefactor  = 1.04373
 **********
 **   18 **HESSE 
 **********

 FCN=   8687.325     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1988        2.5141        .49229E-04   -1.5489    
   2  alpha         3.4129        1.6490        .15354E-01    .37380    
   3  Normalizat    .83001        .21829        .32967E-03   -.98965    
   4  Prefactor     1.0437        .14754        .20326E-03   -.91286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5668e-08
Minuit parameter uncertainties:
  1  2.51429
  2  1.83263
  3  0.21852
  4  0.147596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737405': 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) = 8687.32505822
delta logL = 0.61973289753

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.199e+00  2.514e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.413e+00  1.833e+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.044e+00  1.476e-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:  8.300e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.59
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.41 +/- 1.83
Photon Flux (Free Index): 1.07e-07 +/- 5.66e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.25e-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/737405/cmap_HighResolution_380073601_380332801_4FGL_J1332.0-0509_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='1.93e-05', photon_flux_error='3.91e-08', dlogl='6.20e-01', energy_flux='1.87e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-08 01:52:00.358306', photon_index_error2='1.83', photon_index2='3.41', ts='4.10', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.90', time_epoch_completed='1631091120.36', return_code='0', job_id='737405', GAL2='1.04', EG2='0.83', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.66e-08', ts2='5.59', photon_index='2.39' WHERE bin_id='543' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:52:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 737405: <4FGL_J1332.0-0509_daily_bin543> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin543 203.02 -5.1611 380073601 380332801 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 :                                   720.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            980 sec.

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

