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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin482
RA = 203.02, Dec = -5.1611
tmin = 364262401, tmax = 364521601
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='737313', job_status='RUN', time_executed='2021-09-08 01:39:28.893655', time_epoch_executed='1631090368.89' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737313/ft1_4FGL_J1332.0-0509_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737313/ft1_4FGL_J1332.0-0509_daily_bin482.fits outfile=/scratch/kocevski/737313/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin482.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=364262401.0 tmax=364521601.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.24
user 3.03
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/737313/ltcube_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.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/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits
.....................!
real 15.48
user 15.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/737313/ltcube_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.fits outfile=/scratch/kocevski/737313/expmap_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.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/737313/ltcube_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.fits
.....................!
real 190.71
user 186.33
sys 3.91

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/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits scfile=/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits outfile=/scratch/kocevski/737313/cmap_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.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.68
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits scfile=/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits outfile=/scratch/kocevski/737313/cmap_HighResolution_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/737313/ft2_4FGL_J1332.0-0509_daily_bin482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737313/Model_4FGL_J1332.0-0509_daily_bin482.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/737313/ft1_filtered_4FGL_J1332.0-0509_daily_bin482.fits.....................!
real 47.31
user 45.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.431       1.0000         .10000E-03   10000.    
     2 'norm      '    .94595       1.0000         .10000E-03   10000.    
     3 'norm      '    .38201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    45.235       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5593       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.860       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2000       1.0000         .10000E-03   10000.    
    12 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    41.743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.677       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4745       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.592       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0255       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0463       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=   5632.624     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2703 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.469        38.492       -.42563E-05   -.31977E-03
   2  norm          .86755        178.66        .41615E-04   -.46305E-04
   3  norm          .38201        .23051        .46834E-07    .24179E-03
   4  Prefactor     .10000E-03    23.370        .17077E-06** at limit **
   5  norm          45.238        15.701        .52350E-07    .58635E-04
   6  norm          4.5601        7.3984       -.15377E-05    .41810E-03
   7  Prefactor     .10000E-03    13.103        .55925E-06** at limit **
   8  Prefactor     .10000E-03    13.939       -.35765E-06** at limit **
   9  Prefactor     .10000E-03    5.3358        .56187E-07** at limit **
  10  Prefactor     33.883        26.881        .29730E-06    .11046E-03
  11  norm          1.1998        1.0741        .46156E-08    .10433E-03
  12  norm          .10000E-03    4.1657       -.42958E-06** at limit **
  13  norm          .10000E-03    3.6836       -.14288E-06** at limit **
  14  norm          41.783        34.943       -.23698E-05   -.43709E-03
  15  Prefactor     9.8471        7.0753        .77572E-08    .12864E-03
  16  Prefactor     .10000E-03    14.551       -.59733E-06** at limit **
  17  Prefactor     .10000E-03    19.332        .17971E-06** at limit **
  18  norm          .10000E-03    4.3261        .27998E-07** at limit **
  19  Prefactor     13.677        12.719       -.94959E-07    .25667E-04
  20  norm          3.4746        3.2466       -.65453E-07    .83168E-04
  21  Prefactor     .10000E-03    10.133       -.44585E-07** at limit **
  22  norm          10.592        10.602        .26659E-07   -.47972E-05
  23  Normalizat    1.0254        .23775        .10180E-05    .15592E-03
  24  Prefactor     1.0463        .15831       -.62578E-06    .65385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4691
  norm       = 0.867547
  norm       = 0.382008
  Prefactor  = 0.0001
  norm       = 45.2383
  norm       = 4.56009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.8827
  norm       = 1.19985
  norm       = 0.0001
  norm       = 0.0001
  norm       = 41.7834
  Prefactor  = 9.84705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6766
  norm       = 3.47459
  Prefactor  = 0.0001
  norm       = 10.5919
  Normalizat = 1.02543
  Prefactor  = 1.04635
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.624     FROM HESSE     STATUS=OK           397 CALLS     3100 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.469        39.304        .84573E-04   -1.4760    
   2  norm          .86755        176.02        .70242E-02   -1.5522    
   3  norm          .38201        .22741        .25660E-04   -1.5584    
   4  Prefactor     .10000E-03    23.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          45.238        15.720        .59612E-04   -1.4362    
   6  norm          4.5601        7.4296        .94263E-03   -1.5281    
   7  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3688        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.883        26.719        .68865E-04   -1.4543    
  11  norm          1.1998        1.0761        .71066E-04   -1.5489    
  12  norm          .10000E-03    4.1919        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6918        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          41.783        35.523        .31023E-03   -1.4414    
  15  Prefactor     9.8471        7.0659        .12770E-03   -1.5080    
  16  Prefactor     .10000E-03    14.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3381        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.677        12.738        .10831E-03   -1.4968    
  20  norm          3.4746        3.2398        .12460E-03   -1.5335    
  21  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.592        10.605        .12311E-03   -1.5057    
  23  Normalizat    1.0254        .27575        .31880E-03   -.92183    
  24  Prefactor     1.0463        .18349        .21439E-03   -.91200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4669e-08
Minuit parameter uncertainties:
  1  39.3489
  2  24.7878
  3  0.227413
  4  2.91781e-05
  5  15.721
  6  7.43107
  7  9.55839e-05
  8  9.79752e-05
  9  5.33176e-06
  10  26.7285
  11  1.07611
  12  7.76423e-07
  13  2.23838e-07
  14  35.5411
  15  7.06649
  16  0.000125096
  17  4.12201e-05
  18  1.33963e-06
  19  12.7403
  20  3.23995
  21  1.1504e-05
  22  10.6069
  23  0.276132
  24  0.183602
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.200e+00  1.076e+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.046e+00  1.836e-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.025e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 9.79e-06

TS (Fixed Index): 3.66
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737313/likelihoodResults_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.txt

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) = 5632.09509361
delta logL = 0.528421947711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5632.09113953
delta logL = 0.53237603571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1163       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5950       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   5632.091     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1163        1.0211        .11139E-01    .27691E-02
   2  alpha         1.5949        .58876        .45221       -.20124E-04
   3  Normalizat    1.0439        .22881        .71481E-01    .15459E-04
   4  Prefactor     1.0391        .15599        .40598E-01    .26604E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1163
  alpha      = 1.59492
  Normalizat = 1.04386
  Prefactor  = 1.03907
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.091     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1163        1.1766        .69584E-04   -1.5497    
   2  alpha         1.5949        .74421        .18426E-01   -.37045    
   3  Normalizat    1.0439        .26606        .31629E-03   -.91575    
   4  Prefactor     1.0391        .18163        .21503E-03   -.91438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7592e-10
Minuit parameter uncertainties:
  1  1.17664
  2  0.757473
  3  0.266404
  4  0.181738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737313': 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) = 5632.09113952
delta logL = 0.532376040584

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.116e+00  1.177e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.595e+00  7.575e-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.039e+00  1.817e-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.044e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.59 +/- 0.76
Photon Flux (Free Index): 2.02e-08 +/- 2.41e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.66e-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/737313/cmap_HighResolution_364262401_364521601_4FGL_J1332.0-0509_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='1.59e-05', photon_flux_error='3.25e-08', dlogl='5.32e-01', energy_flux='1.09e-05', photon_flux2='2.02e-08', job_status='DONE', time_completed='2021-09-08 01:49:53.522669', photon_index_error2='0.76', photon_index2='1.59', ts='3.66', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.66e-05', EG='1.03', time_epoch_completed='1631090993.52', return_code='0', job_id='737313', GAL2='1.04', EG2='1.04', return_code2='0', energy_flux_error='9.79e-06', photon_flux_error2='2.41e-08', ts2='4.72', photon_index='2.39' WHERE bin_id='482' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:49:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 737313: <4FGL_J1332.0-0509_daily_bin482> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin482 203.02 -5.1611 364262401 364521601 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 :                                   623.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            859 sec.

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

