/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin324
RA = 203.02, Dec = -5.1611
tmin = 323308801, tmax = 323568001
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='736005', job_status='RUN', time_executed='2021-09-08 01:32:45.414857', time_epoch_executed='1631089965.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736005/ft1_4FGL_J1332.0-0509_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736005/ft1_4FGL_J1332.0-0509_daily_bin324.fits outfile=/scratch/kocevski/736005/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin324.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=323308801.0 tmax=323568001.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.01
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.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/736005/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.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.72
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/736005/ltcube_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.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/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits
.....................!
real 19.29
user 18.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/736005/ltcube_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.fits outfile=/scratch/kocevski/736005/expmap_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.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/736005/ltcube_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.fits
.....................!
real 192.00
user 187.01
sys 4.31

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/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits outfile=/scratch/kocevski/736005/cmap_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits outfile=/scratch/kocevski/736005/cmap_HighResolution_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/736005/ft2_4FGL_J1332.0-0509_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736005/Model_4FGL_J1332.0-0509_daily_bin324.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/736005/ft1_filtered_4FGL_J1332.0-0509_daily_bin324.fits.....................!
real 51.72
user 50.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14883E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .14399E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2371       1.0000         .10000E-03   10000.    
    13 'norm      '    8.5068       1.0000         .10000E-03   10000.    
    14 'norm      '    12.969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.723       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1869       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1020       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .47553       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=   6094.499     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2729 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.371       -.12754E-04** at limit **
   2  norm          .10000E-03    11.189        .17858E-05** at limit **
   3  norm          1.8898        .37555        .12869E-07    .63549E-03
   4  Prefactor     .10000E-03    241.09       -.78548E-05** at limit **
   5  norm          .10000E-03    5.0035        .34853E-06** at limit **
   6  norm          .10000E-03    3.6768       -.18410E-07** at limit **
   7  Prefactor     .10000E-03    3.2270       -.43723E-07** at limit **
   8  Prefactor     .10000E-03    7.8019       -.41688E-06** at limit **
   9  Prefactor     55.306        15.708       -.26385E-06   -.37917E-04
  10  Prefactor     .10000E-03    28.938        .52615E-05** at limit **
  11  norm          .10000E-03    1.0069        .28507E-07** at limit **
  12  norm          2.2366        3.2978       -.18131E-06   -.47808E-03
  13  norm          8.5092        8.1495       -.27684E-06   -.16742E-03
  14  norm          12.970        21.149       -.66464E-06   -.43669E-05
  15  Prefactor     .10000E-03    7.2092        .14518E-06** at limit **
  16  Prefactor     6.3319        24.151       -.33626E-05   -.25086E-04
  17  Prefactor     60.737        56.988        .11716E-04   -.44138E-05
  18  norm          .10000E-03    3.8452       -.34634E-07** at limit **
  19  Prefactor     3.1884        9.9505       -.19419E-06   -.17305E-03
  20  norm          .10000E-03    1.3954       -.58868E-07** at limit **
  21  Prefactor     .10000E-03    19.224        .97948E-05** at limit **
  22  norm          .10000E-03    12.739       -.31623E-05** at limit **
  23  Normalizat    2.1019        .24658        .61789E-06   -.63768E-04
  24  Prefactor     .47550        .14939       -.12109E-05   -.37211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.88985
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.3055
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.23664
  norm       = 8.50923
  norm       = 12.9705
  Prefactor  = 0.0001
  Prefactor  = 6.33192
  Prefactor  = 60.7374
  norm       = 0.0001
  Prefactor  = 3.18838
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 2.1019
  Prefactor  = 0.475498
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.499     FROM HESSE     STATUS=OK           395 CALLS     3124 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8898        .37650        .20419E-04   -1.5433    
   4  Prefactor     .10000E-03    244.09        .20477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    24.991        .33959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.6787        .14620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2312        .13695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.306        15.739        .53939E-04   -1.4219    
  10  Prefactor     .10000E-03    29.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0543        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2366        3.2614        .15768E-03   -1.5409    
  13  norm          8.5092        8.1046        .13744E-03   -1.5124    
  14  norm          12.970        21.146        .11123E-03   -1.4988    
  15  Prefactor     .10000E-03    7.4751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3319        24.217        .15957E-03   -1.5205    
  17  Prefactor     60.737        56.913        .51490E-04   -1.4148    
  18  norm          .10000E-03    3.8707        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1884        9.9327        .22699E-03   -1.5351    
  20  norm          .10000E-03    1.4168        .90008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.1019        .28198        .26607E-03   -.62020    
  24  Prefactor     .47550        .16878        .31215E-03   -1.1311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33623e-10
Minuit parameter uncertainties:
  1  2.87907e-06
  2  4.18037e-07
  3  0.376504
  4  0.000194748
  5  0.000581651
  6  9.99634e-07
  7  1.11316e-06
  8  1.33612e-06
  9  15.74
  10  4.1827e-06
  11  1.36048e-06
  12  3.26169
  13  8.10569
  14  21.1579
  15  3.63599e-05
  16  24.2542
  17  56.9637
  18  3.7045e-06
  19  9.93783
  20  3.27683e-07
  21  2.61946e-06
  22  9.49263e-06
  23  0.282207
  24  0.16896
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.360e-06  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:  4.755e-01  1.690e-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.102e+00  2.822e-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: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736005/likelihoodResults_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.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) = 6094.50300473
delta logL = -0.00443695614194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6094.49856839
delta logL = -6.09386006545e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10802E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4341       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47550       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=   6093.516     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      271 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19910        .15479        .56133E-02   -.17334E-02
   2  alpha         5.0000        1.1450        .41170    ** at limit **
   3  Normalizat    1.9493        .25323        .61755E-01    .22914E-03
   4  Prefactor     .53271        .14889        .66894E-01    .27963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.199095
  alpha      = 5
  Normalizat = 1.94931
  Prefactor  = 0.532708
 **********
 **   18 **HESSE 
 **********

 FCN=   6093.516     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19910        .17722        .25345E-04   -1.5797    
   2  alpha         5.0000        3.1306        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.9493        .29544        .27306E-03   -.65827    
   4  Prefactor     .53271        .17353        .29609E-03   -1.1050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11847e-10
Minuit parameter uncertainties:
  1  0.177225
  2  1.59014e-05
  3  0.29572
  4  0.173705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736005': 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) = 6093.51575659
delta logL = 0.982811184401

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.991e-01  1.772e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  1.590e-05  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:  5.327e-01  1.737e-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.949e+00  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.40e-07 +/- 1.24e-07
Energy Flux (Free Index): 1.92e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/736005/cmap_HighResolution_323308801_323568001_4FGL_J1332.0-0509_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='9.83e-01', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-08 01:44:04.815356', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='9.86e-08', energy_flux_error2='1.71e-05', EG='2.10', time_epoch_completed='1631090644.82', return_code='0', job_id='736005', GAL2='0.53', EG2='1.95', return_code2='0', photon_flux_error2='1.24e-07', ts2='2.15', photon_index='2.39' WHERE bin_id='324' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 736005: <4FGL_J1332.0-0509_daily_bin324> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin324> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:57 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:10 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:32:10 2021
Terminated at Wed Sep  8 01:44:05 2021
Results reported at Wed Sep  8 01:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin324 203.02 -5.1611 323308801 323568001 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 :                                   673.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            788 sec.

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

