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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin142
RA = 203.02, Dec = -5.1611
tmin = 276134401, tmax = 276393601
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='734781', job_status='RUN', time_executed='2021-09-08 01:29:07.566292', time_epoch_executed='1631089747.57' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734781

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734781/ft1_4FGL_J1332.0-0509_daily_bin142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734781/ft1_4FGL_J1332.0-0509_daily_bin142.fits outfile=/scratch/kocevski/734781/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin142.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=276134401.0 tmax=276393601.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.91
user 4.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.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/734781/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin142.fits evtable="EVENTS" outfile="/scratch/kocevski/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits" evtable="EVENTS" scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits sctable="SC_DATA" outfile=/scratch/kocevski/734781/ltcube_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.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/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits
.....................!
real 14.99
user 14.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits sctable="SC_DATA" expcube=/scratch/kocevski/734781/ltcube_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.fits outfile=/scratch/kocevski/734781/expmap_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.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/734781/ltcube_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.fits
.....................!
real 191.77
user 186.68
sys 4.60

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/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits outfile=/scratch/kocevski/734781/cmap_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits outfile=/scratch/kocevski/734781/cmap_HighResolution_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.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.98
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/734781/ft2_4FGL_J1332.0-0509_daily_bin142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734781/Model_4FGL_J1332.0-0509_daily_bin142.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/734781/ft1_filtered_4FGL_J1332.0-0509_daily_bin142.fits.....................!
real 61.11
user 59.16
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2884       1.0000         .10000E-03   10000.    
     2 'norm      '    47.401       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3266       1.0000         .10000E-03   10000.    
     6 'norm      '    .32248E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.364       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.336       1.0000         .10000E-03   10000.    
    11 'norm      '    9.0515       1.0000         .10000E-03   10000.    
    12 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.512       1.0000         .10000E-03   10000.    
    14 'norm      '    27.863       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3705       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6071       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93418       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=   7297.392     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2685 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2872        44.136       -.25519E-05   -.89351E-05
   2  norm          47.403        52.911        .54515E-06   -.80474E-05
   3  norm          3.2129        .49260       -.19785E-08   -.37277E-03
   4  Prefactor     .10000E-03    27.723        .93697E-05** at limit **
   5  norm          8.3256        12.241       -.42473E-06   -.79483E-04
   6  norm          .10002E-03    8.9182       -.44605E-06** at limit **
   7  Prefactor     3.3421        12.649       -.10687E-05   -.13118E-03
   8  Prefactor     .10000E-03    19.053        .16351E-04** at limit **
   9  Prefactor     17.363        14.942        .10015E-05   -.10910E-04
  10  Prefactor     57.328        26.618       -.11460E-05   -.93668E-05
  11  norm          9.0516        2.5814       -.31890E-07   -.14629E-03
  12  norm          .10000E-03    4.1206        .16503E-06** at limit **
  13  norm          10.511        8.4470        .43137E-06   -.32583E-04
  14  norm          27.865        27.301        .91702E-07    .69325E-05
  15  Prefactor     3.3729        7.8959       -.14746E-05   -.40403E-03
  16  Prefactor     .10000E-03    21.231       -.17551E-04** at limit **
  17  Prefactor     .10000E-03    20.247       -.51187E-05** at limit **
  18  norm          .10000E-03    9.9854        .21711E-05** at limit **
  19  Prefactor     .10000E-03    3.6019        .89137E-07** at limit **
  20  norm          .10000E-03    1.0074        .15704E-07** at limit **
  21  Prefactor     .10000E-03    10.501       -.28072E-05** at limit **
  22  norm          .10000E-03    4.8097        .13689E-06** at limit **
  23  Normalizat    1.6068        .26337       -.17337E-06    .26819E-04
  24  Prefactor     .93433        .16771        .91410E-06   -.28489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28723
  norm       = 47.4025
  norm       = 3.21291
  Prefactor  = 0.0001
  norm       = 8.32562
  norm       = 0.000100019
  Prefactor  = 3.34208
  Prefactor  = 0.0001
  Prefactor  = 17.3628
  Prefactor  = 57.3282
  norm       = 9.05156
  norm       = 0.0001
  norm       = 10.5112
  norm       = 27.865
  Prefactor  = 3.37291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.60678
  Prefactor  = 0.934331
 **********
 **   18 **HESSE 
 **********

 FCN=   7297.392     FROM HESSE     STATUS=OK           409 CALLS     3094 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2872        44.400        .13925E-03   -1.5132    
   2  norm          47.403        52.912        .58240E-04   -1.4330    
   3  norm          3.2129        .49553        .21757E-04   -1.5349    
   4  Prefactor     .10000E-03    27.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3256        12.240        .13893E-03   -1.5131    
   6  norm          .10002E-03    9.5305        .86456E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3421        12.631        .22135E-03   -1.5342    
   8  Prefactor     .10000E-03    19.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.363        14.962        .96117E-04   -1.4874    
  10  Prefactor     57.328        26.427        .52980E-04   -1.4192    
  11  norm          9.0516        2.5861        .69235E-04   -1.5106    
  12  norm          .10000E-03    4.1633        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.511        8.4325        .12358E-03   -1.5059    
  14  norm          27.865        27.303        .75897E-04   -1.4652    
  15  Prefactor     3.3729        7.9133        .22041E-03   -1.5341    
  16  Prefactor     .10000E-03    21.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6054        .15833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0161        .83703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6068        .30952        .33753E-03   -.74821    
  24  Prefactor     .93433        .19601        .27398E-03   -.94952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55756e-10
Minuit parameter uncertainties:
  1  38.4084
  2  52.9648
  3  0.495531
  4  3.9377e-06
  5  12.2435
  6  0.000840112
  7  12.6413
  8  5.56847e-05
  9  14.965
  10  26.4325
  11  2.58612
  12  2.37531e-05
  13  8.43344
  14  27.3153
  15  7.91576
  16  8.56788e-05
  17  2.48777e-06
  18  2.74667e-05
  19  5.02828e-07
  20  3.16826e-07
  21  3.79026e-07
  22  3.23436e-07
  23  0.309894
  24  0.196155
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.052e+00  2.586e+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.962e-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.607e+00  3.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.45
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.74e-07 +/- 7.82e-08
Energy Flux (Fixed Index): 8.23e-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) = 7296.97546536
delta logL = 0.41616836543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7296.95255712
delta logL = 0.439076601096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4844       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6740       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90355       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=   7296.953     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4861        3.1196        .32532E-02    .10883E-03
   2  alpha         2.0795        .35049        .24119        .42087E-04
   3  Normalizat    1.6744        .26056        .75084E-01    .10114E-03
   4  Prefactor     .90322        .16541        .45050E-01    .76148E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.48615
  alpha      = 2.07954
  Normalizat = 1.6744
  Prefactor  = 0.903221
 **********
 **   18 **HESSE 
 **********

 FCN=   7296.953     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4861        2.7491        .72779E-04   -1.5092    
   2  alpha         2.0795        .32383        .10138E-01   -.16899    
   3  Normalizat    1.6744        .30558        .33221E-03   -.72989    
   4  Prefactor     .90322        .19313        .27793E-03   -.96029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6301e-11
Minuit parameter uncertainties:
  1  2.74912
  2  0.324767
  3  0.305929
  4  0.193272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734781': 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) = 7296.95255487
delta logL = 0.439078853225

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.486e+00  2.749e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.080e+00  3.248e-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:  9.032e-01  1.933e-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.674e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.96
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.08 +/- 0.32
Photon Flux (Free Index): 2.23e-07 +/- 8.37e-08
Energy Flux (Free Index): 9.00e-05 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734781/cmap_HighResolution_276134401_276393601_4FGL_J1332.0-0509_daily_bin142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.74e-07', energy_flux2='9.00e-05', photon_flux_error='7.82e-08', dlogl='4.39e-01', energy_flux='8.23e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-08 01:40:12.521392', photon_index_error2='0.32', photon_index2='2.08', ts='30.45', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.81e-05', EG='1.61', time_epoch_completed='1631090412.52', return_code='0', job_id='734781', GAL2='0.90', EG2='1.67', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='8.37e-08', ts2='30.96', photon_index='2.39' WHERE bin_id='142' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 734781: <4FGL_J1332.0-0509_daily_bin142> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin142> 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) <bullet0266>, 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:40:12 2021
Results reported at Wed Sep  8 01:40:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin142 203.02 -5.1611 276134401 276393601 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.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            861 sec.

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

