/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 4 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin502
RA = 203.02, Dec = -5.1611
tmin = 369446401, tmax = 369705601
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='737344', job_status='RUN', time_executed='2021-09-08 01:37:45.097069', time_epoch_executed='1631090265.1' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737344/ft1_4FGL_J1332.0-0509_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737344/ft1_4FGL_J1332.0-0509_daily_bin502.fits outfile=/scratch/kocevski/737344/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin502.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=369446401.0 tmax=369705601.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.57
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737344/ft1_filtered_4FGL_J1332.0-0509_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/737344/ltcube_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.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/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits
.....................!
real 16.22
user 15.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737344/ft1_filtered_4FGL_J1332.0-0509_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/737344/ltcube_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.fits outfile=/scratch/kocevski/737344/expmap_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.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/737344/ltcube_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.fits
.....................!
real 193.94
user 186.92
sys 4.53

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/737344/ft1_filtered_4FGL_J1332.0-0509_daily_bin502.fits scfile=/scratch/kocevski/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits outfile=/scratch/kocevski/737344/cmap_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737344/ft1_filtered_4FGL_J1332.0-0509_daily_bin502.fits scfile=/scratch/kocevski/737344/ft2_4FGL_J1332.0-0509_daily_bin502.fits outfile=/scratch/kocevski/737344/cmap_HighResolution_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.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.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.623       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3811       1.0000         .10000E-03   10000.    
     3 'norm      '    .67245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    91.435       1.0000         .10000E-03   10000.    
     5 'norm      '    28.265       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.219       1.0000         .10000E-03   10000.    
    11 'norm      '    .94551       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6550       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4205       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2007       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      '    1.0972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.634       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0461       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5190       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2995       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0390       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=   6359.144     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2725 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.623        37.139        .20098E-07   -.35340E-04
   2  norm          4.3800        37.557        .47574E-06   -.38125E-04
   3  norm          .67255        .27991        .15409E-07    .11316E-03
   4  Prefactor     91.431        72.111        .15405E-06   -.60738E-04
   5  norm          28.266        14.070        .13287E-06    .81075E-04
   6  norm          .10000E-03    5.2412       -.13775E-07** at limit **
   7  Prefactor     12.209        10.875        .18777E-06    .22631E-03
   8  Prefactor     .10000E-03    8.2328        .24996E-07** at limit **
   9  Prefactor     .10000E-03    4.2672       -.30826E-06** at limit **
  10  Prefactor     39.137        45.590        .60171E-05   -.25255E-03
  11  norm          .94565        1.1770       -.26012E-07   -.27196E-03
  12  norm          3.6728        9.8564       -.52955E-05   -.83707E-03
  13  norm          9.4084        11.764        .67695E-06    .11024E-03
  14  norm          .10000E-03    13.109        .22988E-07** at limit **
  15  Prefactor     2.2035        6.0743        .92425E-05   -.54417E-03
  16  Prefactor     .10000E-03    9.5051        .34263E-06** at limit **
  17  Prefactor     .10000E-03    35.382       -.32365E-06** at limit **
  18  norm          1.0949        5.7587       -.22965E-05   -.14848E-03
  19  Prefactor     16.636        16.646        .64096E-06    .97785E-03
  20  norm          3.0461        3.1634        .45164E-07   -.19407E-04
  21  Prefactor     1.4220        244.79        .10784E-04    .13464E-03
  22  norm          .10000E-03    6.4726        .24230E-07** at limit **
  23  Normalizat    1.2993        .25129       -.63665E-06    .31589E-03
  24  Prefactor     1.0392        .16298       -.72218E-06    .32828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.6229
  norm       = 4.37998
  norm       = 0.672546
  Prefactor  = 91.4312
  norm       = 28.2663
  norm       = 0.0001
  Prefactor  = 12.2088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1365
  norm       = 0.945651
  norm       = 3.67281
  norm       = 9.40835
  norm       = 0.0001
  Prefactor  = 2.20354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09491
  Prefactor  = 16.6359
  norm       = 3.04609
  Prefactor  = 1.42204
  norm       = 0.0001
  Normalizat = 1.2993
  Prefactor  = 1.03921
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.144     FROM HESSE     STATUS=OK           395 CALLS     3120 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.623        37.246        .63677E-04   -1.4448    
   2  norm          4.3800        37.543        .19242E-03   -1.5289    
   3  norm          .67255        .27911        .25328E-04   -1.5544    
   4  Prefactor     91.431        72.131        .42025E-04   -1.3793    
   5  norm          28.266        14.071        .75356E-04   -1.4644    
   6  norm          .10000E-03    5.2726        .17830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.209        10.873        .11465E-03   -1.5009    
   8  Prefactor     .10000E-03    8.2459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2778        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.137        45.870        .64003E-04   -1.4456    
  11  norm          .94565        1.0608        .92417E-03   -1.5513    
  12  norm          3.6728        9.9498        .21129E-03   -1.5325    
  13  norm          9.4084        11.764        .13057E-03   -1.5094    
  14  norm          .10000E-03    13.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2035        6.1227        .13868E-02   -1.5411    
  16  Prefactor     .10000E-03    9.5161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0949        5.6132        .35515E-03   -1.5499    
  19  Prefactor     16.636        16.419        .98201E-04   -1.4892    
  20  norm          3.0461        3.1537        .13769E-03   -1.5359    
  21  Prefactor     1.4220        240.06        .34672E-03   -1.5469    
  22  norm          .10000E-03    6.4743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2993        .29319        .32191E-03   -.83587    
  24  Prefactor     1.0392        .19036        .23429E-03   -.91434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04474e-09
Minuit parameter uncertainties:
  1  37.2683
  2  25.6679
  3  0.279109
  4  72.2003
  5  14.0725
  6  3.10755e-07
  7  10.8747
  8  1.89401e-05
  9  3.37828e-05
  10  45.9115
  11  1.06081
  12  9.95427
  13  11.7665
  14  2.30774e-05
  15  6.12442
  16  3.09693e-05
  17  0.000159849
  18  4.95872
  19  16.4233
  20  3.15391
  21  37.1033
  22  8.39144e-07
  23  0.293562
  24  0.190483
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.457e-01  1.061e+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.039e+00  1.905e-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.299e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 8.60e-06 +/- 9.65e-06

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

Saving results to:
/scratch/kocevski/737344/likelihoodResults_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.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) = 6359.10538201
delta logL = 0.0389063746579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.10031408
delta logL = 0.0439743039351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84094       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0340       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=   6359.100     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84009        1.5364        .19185E-01    .12168E-03
   2  alpha         1.9820        1.3595        .42326       -.27488E-04
   3  Normalizat    1.3127        .24243        .72430E-01    .91914E-05
   4  Prefactor     1.0342        .16023        .40951E-01    .43485E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.840088
  alpha      = 1.98198
  Normalizat = 1.31265
  Prefactor  = 1.03421
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.100     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84009        1.1169        .92879E-03   -1.5525    
   2  alpha         1.9820        1.2887        .32645E-01   -.20872    
   3  Normalizat    1.3127        .28424        .32050E-03   -.83189    
   4  Prefactor     1.0342        .18735        .23477E-03   -.91598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41091e-09
Minuit parameter uncertainties:
  1  1.11695
  2  1.35733
  3  0.284575
  4  0.18747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737344': 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) = 6359.10031309
delta logL = 0.0439752986349

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  8.401e-01  1.117e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.982e+00  1.357e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.034e+00  1.875e-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.313e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.98 +/- 1.36
Photon Flux (Free Index): 1.85e-08 +/- 3.55e-08
Energy Flux (Free Index): 8.34e-06 +/- 9.72e-06

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/737344/cmap_HighResolution_369446401_369705601_4FGL_J1332.0-0509_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='8.34e-06', photon_flux_error='3.21e-08', dlogl='4.40e-02', energy_flux='8.60e-06', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-08 01:49:09.147316', photon_index_error2='1.36', photon_index2='1.98', ts='1.66', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.72e-06', EG='1.30', time_epoch_completed='1631090949.15', return_code='0', job_id='737344', GAL2='1.03', EG2='1.31', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='3.55e-08', ts2='1.74', photon_index='2.39' WHERE bin_id='502' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:49:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 737344: <4FGL_J1332.0-0509_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin502 203.02 -5.1611 369446401 369705601 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 :                                   675.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            812 sec.

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

