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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1255
RA = 203.02, Dec = -5.1611
tmin = 564624001, tmax = 564883201
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='740721', job_status='RUN', time_executed='2021-09-08 01:46:35.132906', time_epoch_executed='1631090795.13' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740721/ft1_4FGL_J1332.0-0509_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits


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

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

Done.
real 3.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.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/740721/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/740721/ft1_filtered_4FGL_J1332.0-0509_daily_bin1255.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740721/ft1_filtered_4FGL_J1332.0-0509_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/740721/ltcube_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.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/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits
.....................!
real 16.68
user 16.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740721/ft1_filtered_4FGL_J1332.0-0509_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/740721/ltcube_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.fits outfile=/scratch/kocevski/740721/expmap_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.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/740721/ltcube_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.fits
.....................!
real 192.36
user 187.72
sys 4.27

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/740721/ft1_filtered_4FGL_J1332.0-0509_daily_bin1255.fits scfile=/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits outfile=/scratch/kocevski/740721/cmap_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740721/ft1_filtered_4FGL_J1332.0-0509_daily_bin1255.fits scfile=/scratch/kocevski/740721/ft2_4FGL_J1332.0-0509_daily_bin1255.fits outfile=/scratch/kocevski/740721/cmap_HighResolution_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.50       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.259       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.639       1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.249       1.0000         .10000E-03   10000.    
    18 'norm      '    .10477E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.113       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4274       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79448       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=   5163.250     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2642 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.43        108.37        .55458E-05    .14069E-04
   2  norm          .10000E-03    9.7756       -.11246E-05** at limit **
   3  norm          4.4624        .72350       -.19138E-07    .54370E-03
   4  Prefactor     .10000E-03    22.025       -.78123E-06** at limit **
   5  norm          13.259        11.608        .73802E-07   -.54364E-05
   6  norm          .10000E-03    8.9036        .10977E-06** at limit **
   7  Prefactor     .10000E-03    8.8368        .35367E-06** at limit **
   8  Prefactor     26.320        22.445        .85737E-06   -.18020E-06
   9  Prefactor     15.807        18.780        .26516E-06   -.23541E-04
  10  Prefactor     .10000E-03    25.711        .15541E-05** at limit **
  11  norm          .10000E-03    .44232        .12258E-07** at limit **
  12  norm          15.639        8.7631       -.39911E-06   -.13007E-03
  13  norm          .10000E-03    23.234        .63775E-06** at limit **
  14  norm          .10000E-03    12.232        .35075E-06** at limit **
  15  Prefactor     1.5531        12.997        .64808E-05   -.11892E-03
  16  Prefactor     .10000E-03    13.242        .48359E-06** at limit **
  17  Prefactor     44.018        99.550        .28480E-04    .29733E-04
  18  norm          .10000E-03    22.206        .48620E-05** at limit **
  19  Prefactor     .10000E-03    12.427        .34140E-06** at limit **
  20  norm          12.113        4.5118        .75069E-07   -.99817E-04
  21  Prefactor     .10000E-03    19.729       -.12359E-05** at limit **
  22  norm          .10000E-03    15.732       -.91576E-07** at limit **
  23  Normalizat    1.4272        .27791       -.29393E-05   -.41209E-04
  24  Prefactor     .79460        .18017        .86252E-06   -.10956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.428
  norm       = 0.0001
  norm       = 4.46236
  Prefactor  = 0.0001
  norm       = 13.2589
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3201
  Prefactor  = 15.8068
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.6386
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.55306
  Prefactor  = 0.0001
  Prefactor  = 44.0181
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.113
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.42722
  Prefactor  = 0.794599
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.250     FROM HESSE     STATUS=OK           393 CALLS     3035 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.43        109.36        .19218E-03   -1.3612    
   2  norm          .10000E-03    9.7777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4624        .73089        .22565E-04   -1.5285    
   4  Prefactor     .10000E-03    22.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.259        11.606        .11000E-03   -1.4980    
   6  norm          .10000E-03    8.9200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.320        22.517        .78078E-04   -1.4681    
   9  Prefactor     15.807        18.777        .10074E-03   -1.4913    
  10  Prefactor     .10000E-03    25.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .44406        .46654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.639        8.7363        .10128E-03   -1.4917    
  13  norm          .10000E-03    23.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5531        13.188        .17120E-02   -1.5459    
  16  Prefactor     .10000E-03    13.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.018        100.18        .30135E-03   -1.4380    
  18  norm          .10000E-03    23.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.113        4.5131        .89211E-04   -1.5012    
  21  Prefactor     .10000E-03    19.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4272        .32853        .31205E-03   -.79844    
  24  Prefactor     .79460        .21359        .26399E-03   -.99928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53097e-10
Minuit parameter uncertainties:
  1  109.562
  2  1.2643e-05
  3  0.730895
  4  1.25853e-05
  5  11.6084
  6  9.01027e-07
  7  2.36281e-06
  8  22.5244
  9  18.7842
  10  1.35675e-06
  11  2.49776e-07
  12  8.73703
  13  0.000204229
  14  5.8514e-06
  15  9.05373
  16  1.91108e-05
  17  100.57
  18  0.00018477
  19  2.54481e-05
  20  4.51327
  21  4.11679e-06
  22  5.71752e-06
  23  0.329013
  24  0.213813
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  2.498e-07  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:  7.946e-01  2.138e-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.427e+00  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740721/likelihoodResults_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.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) = 5163.24989207
delta logL = -2.63684296442e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5163.24986547
delta logL = 2.30274054047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3839       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79460       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=   5163.250     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      232 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .50414        .46727E-03** at limit **
   2  alpha         2.1444        3.7055        .16483       -.11760E-06
   3  Normalizat    1.4272        .31972        .31205E-03    .54539E-04
   4  Prefactor     .79460        .21005        .26399E-03    .84150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14443
  Normalizat = 1.42722
  Prefactor  = 0.7946
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.250     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .45589        .93454E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1444        3.3335        .65933E-02   -.14271    
   3  Normalizat    1.4272        .32008        .12482E-04   -.79844    
   4  Prefactor     .79460        .21029        .10559E-04   -.99928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01574e-10
Minuit parameter uncertainties:
  1  7.51884e-06
  2  102.077
  3  0.320528
  4  0.210505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740721': 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) = 5163.24986278
delta logL = 2.91977448796e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  7.519e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.144e+00  1.021e+02  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:  7.946e-01  2.105e-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.427e+00  3.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/740721/cmap_HighResolution_564624001_564883201_4FGL_J1332.0-0509_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-08 01:56:37.747590', job_id='740721', GAL2='0.79', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631091397.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1255' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 740721: <4FGL_J1332.0-0509_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1255> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:46:23 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:46:26 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:46:26 2021
Terminated at Wed Sep  8 01:56:38 2021
Results reported at Wed Sep  8 01:56:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1255 203.02 -5.1611 564624001 564883201 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            615 sec.

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

