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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin646
RA = 203.02, Dec = -5.1611
tmin = 406771201, tmax = 407030401
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='738655', job_status='RUN', time_executed='2021-09-08 01:42:25.064382', time_epoch_executed='1631090545.06' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738655/ft1_4FGL_J1332.0-0509_daily_bin646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738655/ft1_4FGL_J1332.0-0509_daily_bin646.fits outfile=/scratch/kocevski/738655/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin646.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=406771201.0 tmax=407030401.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 2.89
user 2.68
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.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/738655/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin646.fits evtable="EVENTS" outfile="/scratch/kocevski/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/738655/ltcube_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.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/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits
.....................!
real 14.13
user 13.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/738655/ltcube_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.fits outfile=/scratch/kocevski/738655/expmap_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.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/738655/ltcube_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.fits
.....................!
real 156.97
user 152.38
sys 3.93

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/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits outfile=/scratch/kocevski/738655/cmap_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits outfile=/scratch/kocevski/738655/cmap_HighResolution_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/738655/ft2_4FGL_J1332.0-0509_daily_bin646.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738655/Model_4FGL_J1332.0-0509_daily_bin646.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/738655/ft1_filtered_4FGL_J1332.0-0509_daily_bin646.fits....................!
real 47.37
user 45.30
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24456E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1628       1.0000         .10000E-03   10000.    
    12 'norm      '    .98024E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0549       1.0000         .10000E-03   10000.    
    14 'norm      '    18.520       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9010       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4573       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0185       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=   7180.292     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2322 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.932        .12876E-05** at limit **
   2  norm          .10002E-03    42.607        .60608E-05** at limit **
   3  norm          1.3881        .31792        .92218E-08   -.34489E-03
   4  Prefactor     .10000E-03    37.075        .17945E-05** at limit **
   5  norm          .10000E-03    3.1372       -.27608E-08** at limit **
   6  norm          .10000E-03    6.2552       -.32654E-07** at limit **
   7  Prefactor     .10000E-03    2.5506       -.82296E-09** at limit **
   8  Prefactor     .10000E-03    23.273       -.19346E-05** at limit **
   9  Prefactor     20.365        9.5241       -.25530E-07    .34500E-04
  10  Prefactor     .10024E-03    16.429       -.30872E-05** at limit **
  11  norm          4.1631        1.9814        .33769E-07   -.13939E-04
  12  norm          .12787        2.4553        .60763E-06    .11959E-03
  13  norm          8.0328        6.7047       -.29669E-06   -.50673E-05
  14  norm          18.521        20.857        .11571E-06    .23462E-04
  15  Prefactor     3.3258        3.6840        .11461E-06    .37684E-04
  16  Prefactor     .10000E-03    5.0467       -.25682E-07** at limit **
  17  Prefactor     .10000E-03    31.893       -.26074E-05** at limit **
  18  norm          .10000E-03    7.6944        .74313E-07** at limit **
  19  Prefactor     4.9017        8.5487        .29508E-05   -.47979E-03
  20  norm          4.4577        2.9345        .49492E-07   -.59175E-04
  21  Prefactor     .10000E-03    13.481        .24259E-05** at limit **
  22  norm          .10000E-03    12.922       -.22643E-05** at limit **
  23  Normalizat    1.1283        .21990       -.26280E-06    .98684E-04
  24  Prefactor     1.0185        .14000       -.15096E-06    .13773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100023
  norm       = 1.38815
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 20.3645
  Prefactor  = 0.000100244
  norm       = 4.16312
  norm       = 0.127868
  norm       = 8.03276
  norm       = 18.5211
  Prefactor  = 3.32584
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 4.90175
  norm       = 4.45772
  Prefactor  = 0.000100004
  norm       = 0.000100003
  Normalizat = 1.12835
  Prefactor  = 1.01848
 **********
 **   18 **HESSE 
 **********

 FCN=   7180.292     FROM HESSE     STATUS=OK           397 CALLS     2719 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    45.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3881        .31856        .21674E-04   -1.5472    
   4  Prefactor     .10000E-03    37.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1406        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.3131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5542        .13215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.365        9.5192        .88751E-04   -1.4805    
  10  Prefactor     .10024E-03    59.908        .53974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1631        1.9843        .77068E-04   -1.5300    
  12  norm          .12787        36.217        .20745E-02   -1.5636    
  13  norm          8.0328        7.7628        .14127E-03   -1.5141    
  14  norm          18.521        20.862        .93068E-04   -1.4847    
  15  Prefactor     3.3258        3.6736        .16447E-03   -1.5343    
  16  Prefactor     .10000E-03    5.0480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.9529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9017        9.5843        .90843E-03   -1.5265    
  20  norm          4.4577        2.9333        .11252E-03   -1.5286    
  21  Prefactor     .10000E-03    14.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1283        .25575        .32397E-03   -.88847    
  24  Prefactor     1.0185        .16355        .22123E-03   -.92116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9286e-09
Minuit parameter uncertainties:
  1  0.000304426
  2  0.00204169
  3  0.318557
  4  0.000551643
  5  3.46794e-07
  6  4.03185e-06
  7  1.29771e-06
  8  0.000468921
  9  9.51993
  10  0.0076595
  11  1.98429
  12  4.3049
  13  7.76378
  14  20.8701
  15  3.6738
  16  2.65422e-06
  17  0.000741181
  18  9.93331e-06
  19  9.58734
  20  2.93343
  21  0.000460865
  22  0.000412137
  23  0.256027
  24  0.163633
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.163e+00  1.984e+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.018e+00  1.636e-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.128e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.49
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 6.00e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 1.81e-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) = 7179.86572425
delta logL = 0.426481649823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7179.86465036
delta logL = 0.427555548206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4459       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8967       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0466       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=   7179.865     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      235 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4459        22.939        .54470E-02    .88969E-03
   2  alpha         2.8967        3.9358        .30490        .83469E-04
   3  Normalizat    1.0676        .10353        .74949E-01    .33054E-04
   4  Prefactor     1.0466        .68113E-01    .40115E-01   -.55389E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.44586
  alpha      = 2.89674
  Normalizat = 1.06756
  Prefactor  = 1.04657
 **********
 **   18 **HESSE 
 **********

 FCN=   7179.865     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4459        2.1196        .63750E-04   -1.5337    
   2  alpha         2.8967        .59936        .12433E-01    .15937    
   3  Normalizat    1.0676        .25962        .33170E-03   -.90800    
   4  Prefactor     1.0466        .16566        .21863E-03   -.91193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09787e-11
Minuit parameter uncertainties:
  1  2.1197
  2  0.605413
  3  0.259928
  4  0.165742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738655': 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) = 7179.86465036
delta logL = 0.427555548409

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.446e+00  2.120e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.897e+00  6.054e-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.047e+00  1.657e-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.068e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.46
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.90 +/- 0.61
Photon Flux (Free Index): 1.71e-07 +/- 8.32e-08
Energy Flux (Free Index): 3.76e-05 +/- 1.67e-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/738655/cmap_HighResolution_406771201_407030401_4FGL_J1332.0-0509_daily_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.76e-05', photon_flux_error='6.00e-08', dlogl='4.28e-01', energy_flux='3.79e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-08 01:50:49.100691', photon_index_error2='0.61', photon_index2='2.90', ts='7.49', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.13', time_epoch_completed='1631091049.1', return_code='0', job_id='738655', GAL2='1.05', EG2='1.07', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='8.32e-08', ts2='8.46', photon_index='2.39' WHERE bin_id='646' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 738655: <4FGL_J1332.0-0509_daily_bin646> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin646> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:24 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:40:28 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:40:28 2021
Terminated at Wed Sep  8 01:50:49 2021
Results reported at Wed Sep  8 01:50:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin646 203.02 -5.1611 406771201 407030401 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 :                                   500.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            625 sec.

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

