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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin924
RA = 203.02, Dec = -5.1611
tmin = 478828801, tmax = 479088001
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='740193', job_status='RUN', time_executed='2021-09-08 01:49:10.160048', time_epoch_executed='1631090950.16' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740193/ft1_4FGL_J1332.0-0509_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740193/ft2_4FGL_J1332.0-0509_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740193/ft1_4FGL_J1332.0-0509_daily_bin924.fits outfile=/scratch/kocevski/740193/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin924.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=478828801.0 tmax=479088001.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.95
user 2.68
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740193/ft1_filtered_4FGL_J1332.0-0509_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/740193/ft2_4FGL_J1332.0-0509_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/740193/ltcube_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.fits outfile=/scratch/kocevski/740193/expmap_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.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/740193/ltcube_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.fits
.....................!
real 156.58
user 152.63
sys 3.51

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/740193/ft1_filtered_4FGL_J1332.0-0509_daily_bin924.fits scfile=/scratch/kocevski/740193/ft2_4FGL_J1332.0-0509_daily_bin924.fits outfile=/scratch/kocevski/740193/cmap_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740193/ft1_filtered_4FGL_J1332.0-0509_daily_bin924.fits scfile=/scratch/kocevski/740193/ft2_4FGL_J1332.0-0509_daily_bin924.fits outfile=/scratch/kocevski/740193/cmap_HighResolution_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.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.50
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740193/ft1_filtered_4FGL_J1332.0-0509_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/740193/ft2_4FGL_J1332.0-0509_daily_bin924.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740193/Model_4FGL_J1332.0-0509_daily_bin924.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/740193/ft1_filtered_4FGL_J1332.0-0509_daily_bin924.fits.....................!
real 39.84
user 38.58
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    176.16       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13972       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1226       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.193       1.0000         .10000E-03   10000.    
    11 'norm      '    .30742       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5148       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24076E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9339       1.0000         .10000E-03   10000.    
    20 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3856       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92442       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=   5723.079     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2815 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.634       -.34719E-05** at limit **
   2  norm          176.16        57.221       -.17160E-05   -.11623E-04
   3  norm          1.0579        .31337       -.20422E-08    .25526E-03
   4  Prefactor     .10000E-03    43.402        .97488E-07** at limit **
   5  norm          .10204        5.1263        .46883E-07   -.79566E-04
   6  norm          .10000E-03    3.8168       -.97200E-08** at limit **
   7  Prefactor     5.1226        7.8039        .13664E-06    .83484E-06
   8  Prefactor     18.176        15.864       -.14626E-06    .45477E-05
   9  Prefactor     .10000E-03    4.1873        .32290E-08** at limit **
  10  Prefactor     20.173        27.125       -.57402E-05   -.13999E-04
  11  norm          .30787        .90747       -.59872E-07   -.29021E-03
  12  norm          8.5176        5.7126        .11606E-05   -.36856E-03
  13  norm          .10000E-03    2.6461        .18934E-07** at limit **
  14  norm          .10000E-03    22.427        .41902E-05** at limit **
  15  Prefactor     .10000E-03    4.6539        .54912E-08** at limit **
  16  Prefactor     21.237        25.366       -.30882E-05   -.14382E-04
  17  Prefactor     .10000E-03    18.098       -.11824E-05** at limit **
  18  norm          .10000E-03    12.868        .16163E-06** at limit **
  19  Prefactor     3.9331        8.3892        .30181E-06   -.48757E-03
  20  norm          .10000E-03    1.3585       -.65003E-07** at limit **
  21  Prefactor     .10000E-03    10.617       -.25395E-07** at limit **
  22  norm          2.3854        6.6265       -.29739E-06   -.57467E-03
  23  Normalizat    1.1534        .23619        .14318E-05   -.14202E-04
  24  Prefactor     .92408        .14935       -.60876E-07    .65228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 176.161
  norm       = 1.05794
  Prefactor  = 0.0001
  norm       = 0.102044
  norm       = 0.0001
  Prefactor  = 5.12264
  Prefactor  = 18.176
  Prefactor  = 0.0001
  Prefactor  = 20.1734
  norm       = 0.307873
  norm       = 8.51763
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.93313
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.38537
  Normalizat = 1.15341
  Prefactor  = 0.924081
 **********
 **   18 **HESSE 
 **********

 FCN=   5723.079     FROM HESSE     STATUS=OK           409 CALLS     3224 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          176.16        57.253        .30406E-04   -1.3046    
   3  norm          1.0579        .31317        .21889E-04   -1.5502    
   4  Prefactor     .10000E-03    43.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10204        8.4588        .62147E-01   -1.5644    
   6  norm          .10000E-03    3.8192        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1226        7.7935        .17764E-03   -1.5255    
   8  Prefactor     18.176        15.874        .93943E-04   -1.4855    
   9  Prefactor     .10000E-03    4.2031        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.173        27.138        .89131E-04   -1.4809    
  11  norm          .30787        .89202        .11785E-03   -1.5597    
  12  norm          8.5176        5.7500        .55021E-03   -1.5124    
  13  norm          .10000E-03    2.6556        .12013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8426        .31844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.237        25.462        .86894E-04   -1.4786    
  17  Prefactor     .10000E-03    18.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.374        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9331        9.4206        .10170E-02   -1.5311    
  20  norm          .10000E-03    2.3430        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3854        13.562        .13260E-02   -1.5399    
  23  Normalizat    1.1534        .27734        .30072E-03   -.88055    
  24  Prefactor     .92408        .17839        .21963E-03   -.95305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5584e-09
Minuit parameter uncertainties:
  1  3.24889e-05
  2  57.2711
  3  0.313173
  4  3.20077e-06
  5  1.8575
  6  8.57425e-07
  7  7.79503
  8  15.8779
  9  1.18269e-06
  10  27.1544
  11  0.892055
  12  5.75038
  13  5.26202e-06
  14  3.47661e-05
  15  1.86036e-06
  16  25.4746
  17  8.41506e-06
  18  2.66886e-05
  19  9.42419
  20  1.22381e-05
  21  1.96613e-07
  22  11.3793
  23  0.277688
  24  0.178502
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.079e-01  8.921e-01  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.241e-01  1.785e-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.153e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740193/likelihoodResults_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.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) = 5722.90267983
delta logL = 0.176630504755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.90175227
delta logL = 0.177558069009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32399       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91853       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=   5722.902     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32404        .84142        .19082E-01    .54385E-03
   2  alpha         1.3137        1.1273        .49491       -.54164E-04
   3  Normalizat    1.1630        .22388        .67714E-01    .97497E-05
   4  Prefactor     .91853        .14879        .45241E-01    .75566E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.324036
  alpha      = 1.31373
  Normalizat = 1.16295
  Prefactor  = 0.918531
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.902     FROM HESSE     STATUS=OK            35 CALLS      243 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32404        .69914        .97651E-03   -1.5594    
   2  alpha         1.3137        1.3617        .35647E-01   -.49441    
   3  Normalizat    1.1630        .26478        .29958E-03   -.87755    
   4  Prefactor     .91853        .17632        .22013E-03   -.95497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09295e-10
Minuit parameter uncertainties:
  1  0.699153
  2  1.46821
  3  0.265084
  4  0.176433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740193': 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) = 5722.90175226
delta logL = 0.177558076632

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.240e-01  6.992e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.314e+00  1.468e+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.185e-01  1.764e-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.163e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 203.020 -5.161

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/740193/cmap_HighResolution_478828801_479088001_4FGL_J1332.0-0509_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-08 01:58:08.615584', job_id='740193', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.15', time_epoch_completed='1631091488.62', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.78e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='924' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:58:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 740193: <4FGL_J1332.0-0509_daily_bin924> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin924> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:35 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:40 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:45:40 2021
Terminated at Wed Sep  8 01:58:09 2021
Results reported at Wed Sep  8 01:58:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin924 203.02 -5.1611 478828801 479088001 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 :                                   532.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            754 sec.

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

