/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 194 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin144
RA = 203.02, Dec = -5.1611
tmin = 276652801, tmax = 276912001
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='734784', job_status='RUN', time_executed='2021-09-08 01:29:32.227247', time_epoch_executed='1631089772.23' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734784/ft1_4FGL_J1332.0-0509_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734784/ft1_4FGL_J1332.0-0509_daily_bin144.fits outfile=/scratch/kocevski/734784/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin144.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=276652801.0 tmax=276912001.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.66
user 4.38
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.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/734784/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin144.fits evtable="EVENTS" outfile="/scratch/kocevski/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/734784/ltcube_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.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/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits
.....................!
real 16.31
user 15.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/734784/ltcube_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.fits outfile=/scratch/kocevski/734784/expmap_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.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/734784/ltcube_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.fits
.....................!
real 191.90
user 185.91
sys 5.36

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/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits outfile=/scratch/kocevski/734784/cmap_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.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.56
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits outfile=/scratch/kocevski/734784/cmap_HighResolution_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.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.62
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/734784/ft2_4FGL_J1332.0-0509_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734784/Model_4FGL_J1332.0-0509_daily_bin144.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/734784/ft1_filtered_4FGL_J1332.0-0509_daily_bin144.fits.....................!
real 55.97
user 53.85
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.6805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4942       1.0000         .10000E-03   10000.    
    12 'norm      '    .11134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.719       1.0000         .10000E-03   10000.    
    18 'norm      '    18.842       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.663       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0613       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.2639       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63204       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=   6475.358     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2328 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.351        .26842E-04** at limit **
   2  norm          .10000E-03    28.217       -.32145E-05** at limit **
   3  norm          4.6805        .57814       -.89130E-08    .35800E-03
   4  Prefactor     .10000E-03    85.454       -.39155E-04** at limit **
   5  norm          .10000E-03    11.508       -.75352E-05** at limit **
   6  norm          .10000E-03    10.912        .49023E-05** at limit **
   7  Prefactor     .10000E-03    5.8222       -.47883E-07** at limit **
   8  Prefactor     .10000E-03    24.594        .23373E-06** at limit **
   9  Prefactor     4.4949        8.5938       -.17018E-06   -.12133E-03
  10  Prefactor     14.060        23.447       -.15582E-05   -.13271E-04
  11  norm          6.4940        2.5719       -.22181E-07   -.49306E-04
  12  norm          .10000E-03    6.8165        .34640E-07** at limit **
  13  norm          .10000E-03    3.3864        .62184E-07** at limit **
  14  norm          .10000E-03    74.691        .85826E-05** at limit **
  15  Prefactor     .10000E-03    4.2279       -.90191E-07** at limit **
  16  Prefactor     .10000E-03    30.016        .41488E-06** at limit **
  17  Prefactor     38.721        40.976        .21712E-05    .12385E-05
  18  norm          18.841        9.9475       -.30337E-07   -.54060E-05
  19  Prefactor     16.662        15.117        .21699E-06   -.31787E-05
  20  norm          .10000E-03    .91836       -.33739E-07** at limit **
  21  Prefactor     3.0588        65.113       -.48129E-05   -.27247E-04
  22  norm          .10000E-03    13.586        .32816E-05** at limit **
  23  Normalizat    2.2640        .29086        .77407E-06    .21729E-04
  24  Prefactor     .63195        .17756       -.49371E-06    .12160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.68053
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49488
  Prefactor  = 14.0595
  norm       = 6.49403
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.721
  norm       = 18.8412
  Prefactor  = 16.6616
  norm       = 0.0001
  Prefactor  = 3.05883
  norm       = 0.0001
  Normalizat = 2.26402
  Prefactor  = 0.631948
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.358     FROM HESSE     STATUS=OK           391 CALLS     2719 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6805        .58027        .20525E-04   -1.5275    
   4  Prefactor     .10000E-03    85.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4949        8.5824        .18989E-03   -1.5284    
  10  Prefactor     14.060        23.119        .10679E-03   -1.4958    
  11  norm          6.4940        2.5866        .76722E-04   -1.5198    
  12  norm          .10000E-03    6.8996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3912        .14450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    77.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2618        .16135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.721        40.985        .64414E-04   -1.4463    
  18  norm          18.841        9.9371        .92269E-04   -1.4840    
  19  Prefactor     16.662        15.113        .98118E-04   -1.4891    
  20  norm          .10000E-03    .92667        .75297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0588        65.347        .23186E-03   -1.5358    
  22  norm          .10000E-03    13.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.2640        .34479        .30799E-03   -.58086    
  24  Prefactor     .63195        .20733        .33218E-03   -1.0626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3727e-11
Minuit parameter uncertainties:
  1  3.59621e-05
  2  3.41687e-06
  3  0.58027
  4  7.65036e-05
  5  2.12866e-05
  6  3.81863e-06
  7  3.8461e-06
  8  2.61876e-06
  9  8.58473
  10  23.1339
  11  2.58661
  12  6.1362e-05
  13  5.81663e-06
  14  0.000252117
  15  5.84599e-07
  16  1.09622e-05
  17  41.0144
  18  9.93794
  19  15.1161
  20  1.59492e-07
  21  28.3108
  22  2.15444e-06
  23  0.345184
  24  0.207582
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.494e+00  2.587e+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:  6.319e-01  2.076e-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:  2.264e+00  3.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.96
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.96e-07 +/- 7.82e-08
Energy Flux (Fixed Index): 5.91e-05 +/- 2.35e-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) = 6475.10142002
delta logL = 0.256253921658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6475.0988035
delta logL = 0.258870449756

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9230       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7582       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66575       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6475.099     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9231        2.6334        .66615E-04   -.39816E-03
   2  alpha         2.7582        .51513        .11300E-01   -.43437E-04
   3  Normalizat    2.1856        .35221        .31152E-03    .20765E-04
   4  Prefactor     .66574        .21288        .32441E-03    .32030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92309
  alpha      = 2.7582
  Normalizat = 2.18565
  Prefactor  = 0.66574
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.099     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9231        2.5633        .26646E-05   -1.5221    
   2  alpha         2.7582        .50097        .45200E-03    .10346    
   3  Normalizat    2.1856        .35227        .12461E-04   -.59975    
   4  Prefactor     .66574        .21289        .12976E-04   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.022e-11
Minuit parameter uncertainties:
  1  2.56332
  2  0.504427
  3  0.352703
  4  0.213152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734784': 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) = 6475.09880349
delta logL = 0.25887045376

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.923e+00  2.563e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.758e+00  5.044e-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:  6.657e-01  2.132e-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:  2.186e+00  3.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.42
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.76 +/- 0.50
Photon Flux (Free Index): 2.54e-07 +/- 1.17e-07
Energy Flux (Free Index): 6.00e-05 +/- 2.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/734784/cmap_HighResolution_276652801_276912001_4FGL_J1332.0-0509_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.96e-07', energy_flux2='6.00e-05', photon_flux_error='7.82e-08', dlogl='2.59e-01', energy_flux='5.91e-05', photon_flux2='2.54e-07', job_status='DONE', time_completed='2021-09-08 01:39:39.477914', photon_index_error2='0.50', photon_index2='2.76', ts='14.96', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='2.26', time_epoch_completed='1631090379.48', return_code='0', job_id='734784', GAL2='0.67', EG2='2.19', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.17e-07', ts2='15.42', photon_index='2.39' WHERE bin_id='144' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 734784: <4FGL_J1332.0-0509_daily_bin144> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin144> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:51 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:26:06 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:26:06 2021
Terminated at Wed Sep  8 01:39:40 2021
Results reported at Wed Sep  8 01:39:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin144 203.02 -5.1611 276652801 276912001 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 :                                   602.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            829 sec.

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

