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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin567
RA = 203.02, Dec = -5.1611
tmin = 386294401, tmax = 386553601
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='737440', job_status='RUN', time_executed='2021-09-08 01:40:32.618257', time_epoch_executed='1631090432.62' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737440/ft1_4FGL_J1332.0-0509_daily_bin567.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737440/ft1_4FGL_J1332.0-0509_daily_bin567.fits outfile=/scratch/kocevski/737440/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin567.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=386294401.0 tmax=386553601.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.98
user 3.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737440/ft1_filtered_4FGL_J1332.0-0509_daily_bin567.fits" evtable="EVENTS" scfile=/scratch/kocevski/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits sctable="SC_DATA" outfile=/scratch/kocevski/737440/ltcube_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.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/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits
.....................!
real 15.18
user 14.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737440/ft1_filtered_4FGL_J1332.0-0509_daily_bin567.fits evtable="EVENTS" scfile=/scratch/kocevski/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits sctable="SC_DATA" expcube=/scratch/kocevski/737440/ltcube_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.fits outfile=/scratch/kocevski/737440/expmap_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.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/737440/ltcube_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.fits
.....................!
real 193.58
user 188.26
sys 4.68

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/737440/ft1_filtered_4FGL_J1332.0-0509_daily_bin567.fits scfile=/scratch/kocevski/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits outfile=/scratch/kocevski/737440/cmap_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737440/ft1_filtered_4FGL_J1332.0-0509_daily_bin567.fits scfile=/scratch/kocevski/737440/ft2_4FGL_J1332.0-0509_daily_bin567.fits outfile=/scratch/kocevski/737440/cmap_HighResolution_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6614       1.0000         .10000E-03   10000.    
     3 'norm      '    .51234       1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.128       1.0000         .10000E-03   10000.    
     5 'norm      '    20.158       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.218       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2439       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9994       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    24.211       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3034       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87047       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=   6512.418     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2716 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.664       -.81420E-06** at limit **
   2  norm          6.6606        15.985        .25397E-06   -.24052E-05
   3  norm          .51236        .21833        .13067E-07   -.92998E-04
   4  Prefactor     64.131        67.227       -.22376E-06   -.84993E-05
   5  norm          20.158        14.932        .34700E-06   -.16540E-04
   6  norm          2.7486        6.4957        .26208E-06   -.11042E-04
   7  Prefactor     .10000E-03    6.4773        .55508E-07** at limit **
   8  Prefactor     12.076        21.867        .56623E-06   -.16880E-04
   9  Prefactor     14.614        10.145        .24415E-07   -.31865E-04
  10  Prefactor     20.214        26.089       -.22799E-06   -.12950E-04
  11  norm          3.2444        1.8621       -.38840E-07   -.24974E-03
  12  norm          4.9983        5.1352       -.38006E-07   -.18776E-04
  13  norm          .10000E-03    3.2334        .53860E-07** at limit **
  14  norm          .10000E-03    14.908        .21600E-05** at limit **
  15  Prefactor     3.3211        7.6169        .51367E-05   -.27497E-03
  16  Prefactor     5.3334        37.216        .67156E-05    .71116E-04
  17  Prefactor     .10000E-03    107.81       -.80449E-07** at limit **
  18  norm          3.6640        7.1336       -.18426E-05   -.96753E-06
  19  Prefactor     .10000E-03    12.788       -.30396E-05** at limit **
  20  norm          .10000E-03    1.3918        .14335E-06** at limit **
  21  Prefactor     .10000E-03    9.4380        .21416E-07** at limit **
  22  norm          24.211        16.784        .61602E-07   -.65139E-05
  23  Normalizat    1.3029        .23773        .12934E-05    .10427E-03
  24  Prefactor     .87080        .14571       -.24827E-05   -.10399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.66057
  norm       = 0.512364
  Prefactor  = 64.1309
  norm       = 20.158
  norm       = 2.74862
  Prefactor  = 0.0001
  Prefactor  = 12.0762
  Prefactor  = 14.6145
  Prefactor  = 20.2137
  norm       = 3.24442
  norm       = 4.99827
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.32114
  Prefactor  = 5.33337
  Prefactor  = 0.0001
  norm       = 3.66403
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.2107
  Normalizat = 1.30294
  Prefactor  = 0.870797
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.418     FROM HESSE     STATUS=OK           403 CALLS     3119 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6606        15.975        .15547E-03   -1.5192    
   3  norm          .51236        .21770        .23405E-04   -1.5565    
   4  Prefactor     64.131        67.241        .50113E-04   -1.4105    
   5  norm          20.158        14.917        .89210E-04   -1.4810    
   6  norm          2.7486        6.4705        .24552E-03   -1.5376    
   7  Prefactor     .10000E-03    6.5137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.076        21.930        .11530E-03   -1.5013    
   9  Prefactor     14.614        10.150        .10477E-03   -1.4943    
  10  Prefactor     20.214        26.134        .89078E-04   -1.4808    
  11  norm          3.2444        1.8626        .78607E-04   -1.5348    
  12  norm          4.9983        5.1377        .13308E-03   -1.5261    
  13  norm          .10000E-03    3.2454        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3211        7.7798        .11103E-02   -1.5343    
  16  Prefactor     5.3334        38.229        .17323E-03   -1.5246    
  17  Prefactor     .10000E-03    109.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6640        7.1692        .21101E-03   -1.5325    
  19  Prefactor     .10000E-03    13.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4130        .92933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          24.211        16.787        .81409E-04   -1.4723    
  23  Normalizat    1.3029        .28218        .30021E-03   -.83479    
  24  Prefactor     .87080        .16966        .23123E-03   -.97169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37443e-10
Minuit parameter uncertainties:
  1  5.4727e-06
  2  15.9852
  3  0.217702
  4  67.321
  5  14.9196
  6  6.47213
  7  1.19278e-05
  8  21.9445
  9  10.1516
  10  26.1486
  11  1.86267
  12  5.13818
  13  2.27037e-06
  14  3.09003e-05
  15  7.78216
  16  28.5837
  17  0.000307765
  18  7.17088
  19  0.000322211
  20  7.80855e-06
  21  1.39771e-05
  22  16.7898
  23  0.282513
  24  0.169761
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.244e+00  1.863e+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:  8.708e-01  1.698e-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.303e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.81e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.69e-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) = 6511.4867587
delta logL = 0.93156945107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6511.46240927
delta logL = 0.955918887008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2105       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2544       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90720       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=   6511.462     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2105        1.8279        .27666E-04   -.14908E-02
   2  alpha         3.2544        .71896        .12816E-01   -.55750E-04
   3  Normalizat    1.2227        .27041        .30807E-03    .52180E-04
   4  Prefactor     .90720        .17123        .22705E-03    .38004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2105
  alpha      = 3.25444
  Normalizat = 1.22266
  Prefactor  = 0.907198
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.462     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2105        1.6952        .11067E-05   -1.5411    
   2  alpha         3.2544        .66761        .51265E-03    .30656    
   3  Normalizat    1.2227        .27060        .12323E-04   -.85906    
   4  Prefactor     .90720        .17124        .90821E-05   -.95890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64811e-10
Minuit parameter uncertainties:
  1  1.69525
  2  0.676663
  3  0.270915
  4  0.171339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737440': 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) = 6511.46240924
delta logL = 0.955918910719

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.210e+00  1.695e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.254e+00  6.767e-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.072e-01  1.713e-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.223e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.64
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.25 +/- 0.68
Photon Flux (Free Index): 1.63e-07 +/- 8.51e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.51e-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/737440/cmap_HighResolution_386294401_386553601_4FGL_J1332.0-0509_daily_bin567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.81e-08', energy_flux2='3.10e-05', photon_flux_error='5.63e-08', dlogl='9.56e-01', energy_flux='2.95e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-09-08 01:50:46.391019', photon_index_error2='0.68', photon_index2='3.25', ts='4.54', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.30', time_epoch_completed='1631091046.39', return_code='0', job_id='737440', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.51e-08', ts2='6.64', photon_index='2.39' WHERE bin_id='567' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 737440: <4FGL_J1332.0-0509_daily_bin567> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin567 203.02 -5.1611 386294401 386553601 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 :                                   612.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            904 sec.

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

