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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin269
RA = 203.02, Dec = -5.1611
tmin = 309052801, tmax = 309312001
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='735936', job_status='RUN', time_executed='2021-09-08 01:35:13.724493', time_epoch_executed='1631090113.72' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735936/ft1_4FGL_J1332.0-0509_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735936/ft1_4FGL_J1332.0-0509_daily_bin269.fits outfile=/scratch/kocevski/735936/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin269.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=309052801.0 tmax=309312001.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.14
user 3.17
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.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/735936/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin269.fits evtable="EVENTS" outfile="/scratch/kocevski/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.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.71
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/735936/ltcube_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.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/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits
.....................!
real 15.06
user 14.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/735936/ltcube_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.fits outfile=/scratch/kocevski/735936/expmap_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.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/735936/ltcube_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.fits
.....................!
real 191.09
user 185.96
sys 4.16

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/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits outfile=/scratch/kocevski/735936/cmap_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits outfile=/scratch/kocevski/735936/cmap_HighResolution_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/735936/ft2_4FGL_J1332.0-0509_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735936/Model_4FGL_J1332.0-0509_daily_bin269.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/735936/ft1_filtered_4FGL_J1332.0-0509_daily_bin269.fits.....................!
real 58.58
user 57.00
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.330       1.0000         .10000E-03   10000.    
     2 'norm      '    10.282       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.428       1.0000         .10000E-03   10000.    
     5 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.172       1.0000         .10000E-03   10000.    
    11 'norm      '    14.071       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5225       1.0000         .10000E-03   10000.    
    13 'norm      '    11.482       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10413E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    34.648       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1905       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4362       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=   7103.911     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2696 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.194        64.489       -.31018E-05   -.42715E-04
   2  norm          10.280        26.293        .90930E-07   -.38328E-05
   3  norm          1.6935        .42010        .19754E-06   -.15512E-03
   4  Prefactor     74.399        76.755       -.81694E-06   -.83067E-05
   5  norm          .10000E-03    13.052       -.15246E-06** at limit **
   6  norm          .10000E-03    3.8213        .15553E-07** at limit **
   7  Prefactor     .10000E-03    6.4009        .99022E-07** at limit **
   8  Prefactor     .10000E-03    18.192        .17862E-06** at limit **
   9  Prefactor     19.524        13.383        .89626E-07   -.15302E-04
  10  Prefactor     37.173        41.607       -.29021E-06   -.11318E-04
  11  norm          14.071        3.2097        .40320E-07   -.57473E-04
  12  norm          6.5223        9.4843        .39394E-06   -.74041E-05
  13  norm          11.482        12.030       -.35522E-07   -.16934E-04
  14  norm          .10000E-03    32.555        .13342E-06** at limit **
  15  Prefactor     .10000E-03    3.1883       -.10540E-06** at limit **
  16  Prefactor     .10000E-03    4.8383        .60186E-07** at limit **
  17  Prefactor     .10000E-03    28.058        .12814E-06** at limit **
  18  norm          7.8081        9.1176        .25953E-05    .21379E-04
  19  Prefactor     .10000E-03    12.589        .45262E-06** at limit **
  20  norm          .10000E-03    2.3882        .74298E-08** at limit **
  21  Prefactor     .10000E-03    17.708        .13828E-06** at limit **
  22  norm          34.650        27.579        .13929E-06   -.39786E-05
  23  Normalizat    1.1906        .28098       -.32205E-06   -.49413E-04
  24  Prefactor     1.4361        .18526       -.12802E-05    .52808E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.1935
  norm       = 10.2796
  norm       = 1.69348
  Prefactor  = 74.3985
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5245
  Prefactor  = 37.1728
  norm       = 14.0711
  norm       = 6.52229
  norm       = 11.4818
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80807
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 34.6498
  Normalizat = 1.19063
  Prefactor  = 1.43611
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.911     FROM HESSE     STATUS=OK           401 CALLS     3097 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.194        65.109        .26491E-03   -1.4194    
   2  norm          10.280        26.289        .12496E-03   -1.5067    
   3  norm          1.6935        .42150        .24264E-04   -1.5448    
   4  Prefactor     74.399        76.811        .23270E-03   -1.3981    
   5  norm          .10000E-03    13.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8224        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.524        13.388        .90642E-04   -1.4824    
  10  Prefactor     37.173        41.173        .65735E-04   -1.4488    
  11  norm          14.071        3.2218        .67144E-04   -1.4958    
  12  norm          6.5223        9.3460        .15714E-03   -1.5197    
  13  norm          11.482        11.974        .11823E-03   -1.5030    
  14  norm          .10000E-03    32.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2144        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8394        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8081        9.1372        .71750E-03   -1.5149    
  19  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6292        .24961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          34.650        27.596        .68080E-04   -1.4530    
  23  Normalizat    1.1906        .32821        .40053E-03   -.86893    
  24  Prefactor     1.4361        .21614        .24930E-03   -.79345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4014e-11
Minuit parameter uncertainties:
  1  65.1906
  2  26.3187
  3  0.4215
  4  76.9139
  5  9.42523e-06
  6  5.77669e-07
  7  4.33215e-06
  8  1.58994e-05
  9  13.3902
  10  41.2045
  11  3.22184
  12  9.34813
  13  11.9764
  14  1.19352e-05
  15  1.4703e-05
  16  3.21467e-06
  17  2.74214e-05
  18  9.13886
  19  2.55071e-05
  20  2.66327e-05
  21  3.51743e-06
  22  27.6065
  23  0.32878
  24  0.216276
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.407e+01  3.222e+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.436e+00  2.163e-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.191e+00  3.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.76
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.26e-07 +/- 9.74e-08
Energy Flux (Fixed Index): 1.28e-04 +/- 2.93e-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) = 7100.82412905
delta logL = 3.08686543877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7100.82169129
delta logL = 3.08930320044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5126       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1528       1.0000          .0000       5.0000    
     3 'Normalizat'    .94137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5520       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=   7100.822     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      279 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5129        3.3071        .48180E-04    .26664E-03
   2  alpha         3.1529        .33661        .60740E-03    .99199E-06
   3  Normalizat    .94133        .33517        .44168E-03   -.11174E-03
   4  Prefactor     1.5521        .22014        .24122E-03   -.13366E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.51289
  alpha      = 3.15292
  Normalizat = 0.941325
  Prefactor  = 1.55209
 **********
 **   18 **HESSE 
 **********

 FCN=   7100.822     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5129        3.2871        .19272E-05   -1.5091    
   2  alpha         3.1529        .33457        .24296E-04    .26423    
   3  Normalizat    .94133        .33536        .17667E-04   -.95023    
   4  Prefactor     1.5521        .22026        .48244E-04   -.76091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96168e-11
Minuit parameter uncertainties:
  1  3.28715
  2  0.335655
  3  0.336109
  4  0.220394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735936': 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) = 7100.82169091
delta logL = 3.08930357982

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.513e+00  3.287e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.153e+00  3.357e-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:  1.552e+00  2.204e-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.413e-01  3.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.74
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.15 +/- 0.34
Photon Flux (Free Index): 6.26e-07 +/- 1.41e-07
Energy Flux (Free Index): 1.23e-04 +/- 2.51e-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/735936/cmap_HighResolution_309052801_309312001_4FGL_J1332.0-0509_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.26e-07', energy_flux2='1.23e-04', photon_flux_error='9.74e-08', dlogl='3.09e+00', energy_flux='1.28e-04', photon_flux2='6.26e-07', job_status='DONE', time_completed='2021-09-08 01:46:10.966571', photon_index_error2='0.34', photon_index2='3.15', ts='46.76', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.19', time_epoch_completed='1631090770.97', return_code='0', job_id='735936', GAL2='1.55', EG2='0.94', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='1.41e-07', ts2='54.74', photon_index='2.39' WHERE bin_id='269' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 735936: <4FGL_J1332.0-0509_daily_bin269> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin269> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:52 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31:50 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:31:50 2021
Terminated at Wed Sep  8 01:46:11 2021
Results reported at Wed Sep  8 01:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin269 203.02 -5.1611 309052801 309312001 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 :                                   653.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            919 sec.

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

