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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin303
RA = 203.02, Dec = -5.1611
tmin = 317865601, tmax = 318124801
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='735984', job_status='RUN', time_executed='2021-09-08 01:35:10.894518', time_epoch_executed='1631090110.89' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735984/ft1_4FGL_J1332.0-0509_daily_bin303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735984/ft1_4FGL_J1332.0-0509_daily_bin303.fits outfile=/scratch/kocevski/735984/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin303.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=317865601.0 tmax=318124801.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.48
user 3.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits" evtable="EVENTS" scfile=/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits sctable="SC_DATA" outfile=/scratch/kocevski/735984/ltcube_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.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/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits
.....................!
real 18.18
user 17.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits sctable="SC_DATA" expcube=/scratch/kocevski/735984/ltcube_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.fits outfile=/scratch/kocevski/735984/expmap_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.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/735984/ltcube_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.fits
.....................!
real 193.77
user 187.43
sys 5.05

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/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits scfile=/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits outfile=/scratch/kocevski/735984/cmap_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits scfile=/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits outfile=/scratch/kocevski/735984/cmap_HighResolution_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.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.59
user 0.38
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits evtable="EVENTS" scfile=/scratch/kocevski/735984/ft2_4FGL_J1332.0-0509_daily_bin303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735984/Model_4FGL_J1332.0-0509_daily_bin303.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/735984/ft1_filtered_4FGL_J1332.0-0509_daily_bin303.fits.....................!
real 48.55
user 46.95
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.079       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8823       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.827       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3658       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7649       1.0000         .10000E-03   10000.    
    13 'norm      '    .14491E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.020       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1752       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6799       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0684       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3733       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74507       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=   5540.653     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     3156 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.186       -.81971E-08** at limit **
   2  norm          .10000E-03    13.497        .75631E-06** at limit **
   3  norm          1.1176        .30239        .13132E-07    .33935E-04
   4  Prefactor     25.112        83.303       -.33289E-05   -.25044E-05
   5  norm          1.8824        8.9934        .11894E-05    .45251E-03
   6  norm          .10000E-03    5.0330        .15712E-07** at limit **
   7  Prefactor     5.5122        8.6665        .51090E-07    .12510E-03
   8  Prefactor     .10000E-03    33.528        .25486E-07** at limit **
   9  Prefactor     21.848        11.061       -.37164E-07    .59483E-04
  10  Prefactor     27.818        34.950       -.31509E-05    .22227E-03
  11  norm          4.3668        2.0736        .34812E-08    .11759E-03
  12  norm          1.7668        7.6418        .39133E-05    .39820E-03
  13  norm          .10001E-03    6.8425       -.10323E-05** at limit **
  14  norm          .10000E-03    11.474       -.42715E-06** at limit **
  15  Prefactor     6.1733        6.8608        .36993E-07    .16177E-03
  16  Prefactor     11.528        19.025       -.39673E-06    .28796E-04
  17  Prefactor     31.978        64.409        .37143E-05    .23900E-04
  18  norm          4.2741        8.3379        .18075E-07    .36743E-04
  19  Prefactor     6.1766        9.6177        .16273E-06    .17830E-03
  20  norm          1.6797        1.5950        .38710E-08    .61815E-05
  21  Prefactor     1.0463        37.917       -.50160E-05    .33652E-03
  22  norm          .10000E-03    7.7020        .18662E-07** at limit **
  23  Normalizat    1.3725        .24345        .28993E-06    .79771E-04
  24  Prefactor     .74562        .15653       -.36792E-06    .27147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.11764
  Prefactor  = 25.1118
  norm       = 1.88235
  norm       = 0.0001
  Prefactor  = 5.51225
  Prefactor  = 0.0001
  Prefactor  = 21.8478
  Prefactor  = 27.8183
  norm       = 4.36678
  norm       = 1.76675
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 6.17334
  Prefactor  = 11.5281
  Prefactor  = 31.9776
  norm       = 4.2741
  Prefactor  = 6.17657
  norm       = 1.67969
  Prefactor  = 1.04633
  norm       = 0.0001
  Normalizat = 1.37251
  Prefactor  = 0.745615
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.653     FROM HESSE     STATUS=OK           407 CALLS     3563 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1176        .30294        .20040E-04   -1.5497    
   4  Prefactor     25.112        83.858        .79990E-04   -1.4705    
   5  norm          1.8824        10.187        .15170E-02   -1.5434    
   6  norm          .10000E-03    5.0475        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5122        8.6743        .85556E-03   -1.5238    
   8  Prefactor     .10000E-03    34.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.848        11.081        .85697E-04   -1.4773    
  10  Prefactor     27.818        34.253        .75945E-04   -1.4653    
  11  norm          4.3668        2.0803        .69439E-04   -1.5290    
  12  norm          1.7668        8.0317        .23943E-03   -1.5442    
  13  norm          .10001E-03    17.972        .34374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1733        6.7768        .16158E-03   -1.5211    
  16  Prefactor     11.528        19.024        .11804E-03   -1.5029    
  17  Prefactor     31.978        64.608        .70810E-04   -1.4576    
  18  norm          4.2741        8.2895        .19484E-03   -1.5294    
  19  Prefactor     6.1766        9.5956        .80775E-03   -1.5211    
  20  norm          1.6797        1.5870        .89106E-04   -1.5449    
  21  Prefactor     1.0463        105.50        .65388E-02   -1.5503    
  22  norm          .10000E-03    7.7119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3725        .28670        .28074E-03   -.81427    
  24  Prefactor     .74562        .18340        .23931E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55803e-09
Minuit parameter uncertainties:
  1  5.00746e-07
  2  1.49633e-05
  3  0.302936
  4  84.2556
  5  8.75997
  6  2.55335e-06
  7  8.67632
  8  5.20772e-05
  9  11.0819
  10  34.2768
  11  2.08035
  12  7.5354
  13  0.000703332
  14  1.92475e-06
  15  6.77764
  16  19.0339
  17  64.7501
  18  8.29167
  19  9.59803
  20  1.58703
  21  21.0502
  22  1.77482e-06
  23  0.287034
  24  0.183548
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.367e+00  2.080e+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:  7.456e-01  1.835e-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.373e+00  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.22
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.89e-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) = 5539.91101801
delta logL = 0.742038859162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5539.88642988
delta logL = 0.766626991503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3489       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0394       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78231       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5539.886     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3488        2.1025        .52042E-04    .22363E-02
   2  alpha         3.0395        .57286        .10244E-01    .10656E-03
   3  Normalizat    1.2922        .28049        .28735E-03   -.52383E-04
   4  Prefactor     .78232        .17950        .23415E-03   -.88026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.34877
  alpha      = 3.03949
  Normalizat = 1.2922
  Prefactor  = 0.782317
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.886     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3488        1.9990        .20817E-05   -1.5342    
   2  alpha         3.0395        .54485        .40975E-03    .21751    
   3  Normalizat    1.2922        .28072        .11494E-04   -.83800    
   4  Prefactor     .78232        .17955        .93660E-05   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22134e-10
Minuit parameter uncertainties:
  1  1.99906
  2  0.549478
  3  0.28105
  4  0.179686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735984': 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) = 5539.88642979
delta logL = 0.766627077915

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.349e+00  1.999e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.039e+00  5.495e-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:  7.823e-01  1.797e-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.292e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.91
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.04 +/- 0.55
Photon Flux (Free Index): 1.94e-07 +/- 8.61e-08
Energy Flux (Free Index): 4.00e-05 +/- 1.65e-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/735984/cmap_HighResolution_317865601_318124801_4FGL_J1332.0-0509_daily_bin303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='4.00e-05', photon_flux_error='6.29e-08', dlogl='7.67e-01', energy_flux='3.97e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-08 01:45:26.590301', photon_index_error2='0.55', photon_index2='3.04', ts='8.22', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='1.37', time_epoch_completed='1631090726.59', return_code='0', job_id='735984', GAL2='0.78', EG2='1.29', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='8.61e-08', ts2='9.91', photon_index='2.39' WHERE bin_id='303' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 735984: <4FGL_J1332.0-0509_daily_bin303> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin303> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:56 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:00 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:32:00 2021
Terminated at Wed Sep  8 01:45:27 2021
Results reported at Wed Sep  8 01:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin303 203.02 -5.1611 317865601 318124801 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 :                                   610.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            871 sec.

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

