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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1507
RA = 203.02, Dec = -5.1611
tmin = 629942401, tmax = 630201601
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='742214', job_status='RUN', time_executed='2021-09-08 01:52:57.142466', time_epoch_executed='1631091177.14' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742214/ft1_4FGL_J1332.0-0509_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742214/ft1_4FGL_J1332.0-0509_daily_bin1507.fits outfile=/scratch/kocevski/742214/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1507.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=629942401.0 tmax=630201601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.82
user 4.42
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.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/742214/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1507.fits evtable="EVENTS" outfile="/scratch/kocevski/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.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.54
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/742214/ltcube_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.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/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits
.....................!
real 12.97
user 12.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/742214/ltcube_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.fits outfile=/scratch/kocevski/742214/expmap_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.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/742214/ltcube_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.fits
.....................!
real 191.40
user 184.40
sys 6.38

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/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits outfile=/scratch/kocevski/742214/cmap_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits outfile=/scratch/kocevski/742214/cmap_HighResolution_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/742214/ft2_4FGL_J1332.0-0509_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742214/Model_4FGL_J1332.0-0509_daily_bin1507.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/742214/ft1_filtered_4FGL_J1332.0-0509_daily_bin1507.fits.....................!
real 54.19
user 52.40
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.361       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9589       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2803       1.0000         .10000E-03   10000.    
    12 'norm      '    13.466       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6422       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1937       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64909       1.0000         .10000E-03   10000.    
    20 'norm      '    24.020       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.256       1.0000         .10000E-03   10000.    
    22 'norm      '    35.652       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95823       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93409       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=   6540.563     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2321 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.356        36.790       -.32425E-05   -.45381E-04
   2  norm          .10000E-03    6.5720       -.33120E-08** at limit **
   3  norm          4.1907        .47215        .14236E-07   -.11190E-03
   4  Prefactor     .10000E-03    35.879        .10162E-05** at limit **
   5  norm          9.9599        8.3825       -.46635E-06   -.34618E-04
   6  norm          .10000E-03    3.5412       -.28201E-08** at limit **
   7  Prefactor     12.285        11.481        .33465E-08    .44449E-04
   8  Prefactor     1.1900        10.227        .44249E-06   -.22740E-03
   9  Prefactor     .10000E-03    4.1762       -.56232E-08** at limit **
  10  Prefactor     .10000E-03    9.7486       -.65478E-05** at limit **
  11  norm          1.2803        1.9501       -.64399E-07   -.21423E-04
  12  norm          13.467        6.3787        .60585E-06    .45777E-03
  13  norm          3.6346        10.974       -.28578E-05   -.48819E-05
  14  norm          .10000E-03    9.4721        .47655E-05** at limit **
  15  Prefactor     .10000E-03    1.9349       -.30246E-07** at limit **
  16  Prefactor     .10000E-03    10.932        .20073E-05** at limit **
  17  Prefactor     .10000E-03    18.017        .16277E-06** at limit **
  18  norm          3.1940        6.3136        .51865E-07   -.36970E-03
  19  Prefactor     .63605        9.6857       -.26192E-05    .62477E-03
  20  norm          24.020        4.7866        .44147E-06    .35586E-03
  21  Prefactor     14.193        27.968       -.31420E-05    .40834E-04
  22  norm          35.650        22.698        .99812E-06    .53380E-04
  23  Normalizat    .95801        .23012        .48834E-06    .14559E-03
  24  Prefactor     .93425        .15037        .10040E-06    .20541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3556
  norm       = 0.0001
  norm       = 4.19075
  Prefactor  = 0.0001
  norm       = 9.95991
  norm       = 0.0001
  Prefactor  = 12.2849
  Prefactor  = 1.18999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28031
  norm       = 13.4672
  norm       = 3.63457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19396
  Prefactor  = 0.636045
  norm       = 24.0204
  Prefactor  = 14.1933
  norm       = 35.6501
  Normalizat = 0.958012
  Prefactor  = 0.934253
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.563     FROM HESSE     STATUS=OK           397 CALLS     2718 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.356        36.849        .71549E-04   -1.4587    
   2  norm          .10000E-03    6.5725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1907        .47409        .17691E-04   -1.5299    
   4  Prefactor     .10000E-03    35.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9599        8.3826        .12698E-03   -1.5077    
   6  norm          .10000E-03    3.5433        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.285        11.491        .11428E-03   -1.5007    
   8  Prefactor     1.1900        45.797        .20878E-02   -1.5490    
   9  Prefactor     .10000E-03    4.2280        .16137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2803        1.9315        .12652E-03   -1.5482    
  12  norm          13.467        6.3150        .10634E-03   -1.4974    
  13  norm          3.6346        10.816        .21168E-03   -1.5327    
  14  norm          .10000E-03    9.4902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9409        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1940        7.1437        .11337E-02   -1.5351    
  19  Prefactor     .63605        38.345        .44649E-02   -1.5548    
  20  norm          24.020        4.7896        .76175E-04   -1.4727    
  21  Prefactor     14.193        28.016        .10608E-03   -1.4954    
  22  norm          35.650        22.720        .67118E-04   -1.4513    
  23  Normalizat    .95801        .27014        .34495E-03   -.94451    
  24  Prefactor     .93425        .17598        .23529E-03   -.94954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20119e-09
Minuit parameter uncertainties:
  1  36.8762
  2  1.96891e-08
  3  0.474093
  4  3.75184e-05
  5  8.38359
  6  1.60845e-07
  7  11.4931
  8  14.7761
  9  1.06781e-06
  10  0.00012709
  11  1.9316
  12  6.31527
  13  10.8221
  14  9.19905e-05
  15  4.49099e-07
  16  5.07875e-05
  17  5.64822e-06
  18  7.14564
  19  9.88289
  20  4.78968
  21  28.0417
  22  22.7257
  23  0.270521
  24  0.17609
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.280e+00  1.932e+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:  9.343e-01  1.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.580e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742214/likelihoodResults_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.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) = 6539.65567309
delta logL = 0.907381039629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6539.65035923
delta logL = 0.912694905084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66574       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0159       1.0000          .0000       5.0000    
     3 'Normalizat'    .83525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98713       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=   6539.650     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      245 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66485        6.9532        .95753E-02    .23962E-02
   2  alpha         4.0177        4.4546        .45064        .69889E-04
   3  Normalizat    .83438        .63237E-01    .82853E-01    .96751E-04
   4  Prefactor     .98784        .43189E-01    .46106E-01   -.10213E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.664851
  alpha      = 4.01768
  Normalizat = 0.83438
  Prefactor  = 0.987837
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.650     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66485        1.7986        .43201E-04   -1.5545    
   2  alpha         4.0177        3.7219        .20644E-01    .65237    
   3  Normalizat    .83438        .27627        .36687E-03   -.98806    
   4  Prefactor     .98784        .17995        .22948E-03   -.93136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15564e-10
Minuit parameter uncertainties:
  1  1.7987
  2  2.04991
  3  0.276739
  4  0.18006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742214': 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) = 6539.65035069
delta logL = 0.912703444556

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.649e-01  1.799e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.018e+00  2.050e+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:  9.878e-01  1.801e-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:  8.344e-01  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.02 +/- 2.05
Photon Flux (Free Index): 1.26e-07 +/- 9.09e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.58e-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/742214/cmap_HighResolution_629942401_630201601_4FGL_J1332.0-0509_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', energy_flux2='1.97e-05', dlogl='9.13e-01', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-08 02:05:06.111975', photon_index_error2='2.05', photon_index2='4.02', ts='0.55', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.58e-05', EG='0.96', time_epoch_completed='1631091906.11', return_code='0', job_id='742214', GAL2='0.99', EG2='0.83', return_code2='0', photon_flux_error2='9.09e-08', ts2='2.66', photon_index='2.39' WHERE bin_id='1507' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:05:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 742214: <4FGL_J1332.0-0509_daily_bin1507> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1507> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:50:58 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:52:45 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:52:45 2021
Terminated at Wed Sep  8 02:05:06 2021
Results reported at Wed Sep  8 02:05:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1507 203.02 -5.1611 629942401 630201601 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 :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            848 sec.

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

