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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin204
RA = 203.02, Dec = -5.1611
tmin = 292204801, tmax = 292464001
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='735837', job_status='RUN', time_executed='2021-09-08 01:32:43.555614', time_epoch_executed='1631089963.56' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735837/ft1_4FGL_J1332.0-0509_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735837/ft1_4FGL_J1332.0-0509_daily_bin204.fits outfile=/scratch/kocevski/735837/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin204.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=292204801.0 tmax=292464001.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 7.89
user 7.50
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/735837/ltcube_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.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/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits
.....................!
real 14.52
user 14.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/735837/ltcube_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.fits outfile=/scratch/kocevski/735837/expmap_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.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/735837/ltcube_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.fits
.....................!
real 157.75
user 152.19
sys 3.91

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/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits scfile=/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits outfile=/scratch/kocevski/735837/cmap_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.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.52
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits scfile=/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits outfile=/scratch/kocevski/735837/cmap_HighResolution_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/735837/ft2_4FGL_J1332.0-0509_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735837/Model_4FGL_J1332.0-0509_daily_bin204.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/735837/ft1_filtered_4FGL_J1332.0-0509_daily_bin204.fits.....................!
real 24.00
user 22.73
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7998       1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.749       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.536       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.279       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7711       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9741       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2897       1.0000         .10000E-03   10000.    
    20 'norm      '    6.3517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90847       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87620       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=   2447.930     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2722 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4780        254.86       -.47746E-04   -.11245E-04
   2  norm          .10000E-03    52.593       -.10838E-05** at limit **
   3  norm          1.1140        .49222        .53806E-06    .64912E-03
   4  Prefactor     .10000E-03    50.047        .16233E-06** at limit **
   5  norm          16.748        15.792       -.22609E-06   -.13181E-04
   6  norm          .10000E-03    6.2855        .41329E-07** at limit **
   7  Prefactor     14.083        18.469        .50555E-07   -.11489E-04
   8  Prefactor     38.168        41.814       -.46640E-06   -.16587E-04
   9  Prefactor     22.532        17.460       -.49191E-06   -.16284E-04
  10  Prefactor     13.273        34.034       -.51827E-06   -.12631E-04
  11  norm          1.7705        2.0253       -.56500E-07   -.36310E-04
  12  norm          3.9744        5.9564        .24090E-06   -.20910E-04
  13  norm          .10000E-03    5.4855        .30138E-06** at limit **
  14  norm          .10000E-03    22.102        .33690E-07** at limit **
  15  Prefactor     .10000E-03    9.8344        .74590E-06** at limit **
  16  Prefactor     91.171        50.139       -.24778E-06   -.10767E-04
  17  Prefactor     .10000E-03    21.871        .13351E-06** at limit **
  18  norm          5.1813        9.4651        .23705E-06   -.37629E-04
  19  Prefactor     9.2882        16.414        .78978E-08   -.39854E-05
  20  norm          6.3504        5.1360        .12011E-07   -.37932E-04
  21  Prefactor     .10000E-03    34.751        .38421E-06** at limit **
  22  norm          .10000E-03    30.429        .73564E-06** at limit **
  23  Normalizat    .90893        .37617        .70328E-05   -.11173E-03
  24  Prefactor     .87605        .22758       -.61243E-05    .23829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.47805
  norm       = 0.0001
  norm       = 1.11405
  Prefactor  = 0.0001
  norm       = 16.7484
  norm       = 0.0001
  Prefactor  = 14.0826
  Prefactor  = 38.168
  Prefactor  = 22.5318
  Prefactor  = 13.2734
  norm       = 1.7705
  norm       = 3.97445
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.171
  Prefactor  = 0.0001
  norm       = 5.18134
  Prefactor  = 9.28821
  norm       = 6.35038
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.908929
  Prefactor  = 0.876047
 **********
 **   18 **HESSE 
 **********

 FCN=   2447.930     FROM HESSE     STATUS=OK           403 CALLS     3125 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4780        261.66        .14358E-02   -1.5161    
   2  norm          .10000E-03    52.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1140        .49870        .20476E-04   -1.5497    
   4  Prefactor     .10000E-03    50.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.748        15.792        .97866E-04   -1.4889    
   6  norm          .10000E-03    6.2856        .12116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.083        18.453        .10672E-03   -1.4957    
   8  Prefactor     38.168        42.039        .64844E-04   -1.4472    
   9  Prefactor     22.532        17.546        .84376E-04   -1.4758    
  10  Prefactor     13.273        34.147        .10992E-03   -1.4979    
  11  norm          1.7705        2.0143        .71885E-04   -1.5442    
  12  norm          3.9744        5.9636        .11666E-03   -1.5309    
  13  norm          .10000E-03    5.4989        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9563        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     91.171        50.265        .42081E-04   -1.3795    
  17  Prefactor     .10000E-03    21.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1813        9.4187        .17672E-03   -1.5253    
  19  Prefactor     9.2882        16.409        .13149E-03   -1.5098    
  20  norm          6.3504        5.1406        .95177E-04   -1.5204    
  21  Prefactor     .10000E-03    34.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    30.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90893        .42657        .31981E-03   -.96147    
  24  Prefactor     .87605        .25585        .21365E-03   -.96983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50958e-10
Minuit parameter uncertainties:
  1  88.8925
  2  4.81679e-05
  3  0.498701
  4  1.35428e-05
  5  15.7954
  6  1.03371e-06
  7  18.4604
  8  42.0712
  9  17.5499
  10  34.1977
  11  2.0144
  12  5.96454
  13  1.09741e-05
  14  6.35905e-06
  15  2.28984e-05
  16  50.2889
  17  1.11691e-05
  18  9.42136
  19  16.4169
  20  5.141
  21  3.01234e-05
  22  3.39982e-05
  23  0.428173
  24  0.256201
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.771e+00  2.014e+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:  8.760e-01  2.562e-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:  9.089e-01  4.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 6.09e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.83e-05

TS (Fixed Index): 1.46
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 2.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735837/likelihoodResults_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.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) = 2446.26394822
delta logL = 1.66618602311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2446.23312303
delta logL = 1.69701120374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31575       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .64601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0028       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=   2446.233     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      290 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31613        .29668        .34630E-02   -.49733E-03
   2  alpha         5.0000        1.0199        .46330    ** at limit **
   3  Normalizat    .64628        .35166        .83882E-01    .16925E-04
   4  Prefactor     1.0029        .22941        .44731E-01   -.41398E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.316133
  alpha      = 5
  Normalizat = 0.646283
  Prefactor  = 1.00286
 **********
 **   18 **HESSE 
 **********

 FCN=   2446.233     FROM HESSE     STATUS=OK            29 CALLS      319 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31613        .18811        .15418E-04   -1.5596    
   2  alpha         5.0000        .65684        .27880E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64628        .40021        .37149E-03   -1.0605    
   4  Prefactor     1.0029        .26171        .20135E-03   -.92634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94676e-11
Minuit parameter uncertainties:
  1  0.188107
  2  1.34154e-06
  3  0.402029
  4  0.262044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735837': 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) = 2446.23311603
delta logL = 1.69701820642

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.161e-01  1.881e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  1.342e-06  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:  1.003e+00  2.620e-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:  6.463e-01  4.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.22e-07 +/- 1.32e-07
Energy Flux (Free Index): 3.05e-05 +/- 1.81e-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/735837/cmap_HighResolution_292204801_292464001_4FGL_J1332.0-0509_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-05', comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='3.05e-05', photon_flux_error='6.09e-08', dlogl='1.70e+00', energy_flux='1.61e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-08 01:39:39.081919', photon_index_error2='0.00', photon_index2='5.00', ts='1.46', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.81e-05', EG='0.91', time_epoch_completed='1631090379.08', return_code='0', job_id='735837', GAL2='1.00', EG2='0.65', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.32e-07', ts2='5.41', photon_index='2.39' WHERE bin_id='204' 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 <lsf@bullet0189>
Subject: Job 735837: <4FGL_J1332.0-0509_daily_bin204> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin204> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:45 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31: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:31:26 2021
Terminated at Wed Sep  8 01:39:39 2021
Results reported at Wed Sep  8 01:39:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin204 203.02 -5.1611 292204801 292464001 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 :                                   408.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            534 sec.

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

