/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 15 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin81
RA = 203.02, Dec = -5.1611
tmin = 260323201, tmax = 260582401
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='734692', job_status='RUN', time_executed='2021-09-08 01:26:45.407200', time_epoch_executed='1631089605.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734692/ft1_4FGL_J1332.0-0509_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734692/ft1_4FGL_J1332.0-0509_daily_bin81.fits outfile=/scratch/kocevski/734692/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin81.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.70
user 1.39
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.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/734692/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.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.58
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/734692/ltcube_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.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/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits
.....................!
real 18.59
user 18.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/734692/ltcube_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.fits outfile=/scratch/kocevski/734692/expmap_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.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/734692/ltcube_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.fits
.....................!
real 192.65
user 187.97
sys 4.03

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/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits outfile=/scratch/kocevski/734692/cmap_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits outfile=/scratch/kocevski/734692/cmap_HighResolution_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/734692/ft2_4FGL_J1332.0-0509_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734692/Model_4FGL_J1332.0-0509_daily_bin81.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/734692/ft1_filtered_4FGL_J1332.0-0509_daily_bin81.fits.....................!
real 76.50
user 75.02
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.64       1.0000         .10000E-03   10000.    
     5 'norm      '    .16303E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9628       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2356       1.0000         .10000E-03   10000.    
    13 'norm      '    13.548       1.0000         .10000E-03   10000.    
    14 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2531       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3356       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.379       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3485       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.643       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2220       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85339       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=   10141.31     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2302 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.781       -.15859E-05** at limit **
   2  norm          .10000E-03    17.612        .15975E-05** at limit **
   3  norm          1.3061        .23922        .39336E-08    .43348E-04
   4  Prefactor     100.49        58.045       -.35644E-06   -.30323E-04
   5  norm          .10000E-03    4.3879       -.61578E-07** at limit **
   6  norm          .10000E-03    3.2595        .98883E-08** at limit **
   7  Prefactor     .10000E-03    1.7477        .24536E-07** at limit **
   8  Prefactor     .10000E-03    7.4528       -.19503E-06** at limit **
   9  Prefactor     .10000E-03    2.6738        .26894E-07** at limit **
  10  Prefactor     .10000E-03    5.9033        .16194E-07** at limit **
  11  norm          6.9621        1.5629        .14077E-07   -.21450E-04
  12  norm          5.2357        2.8976        .24690E-07   -.12687E-04
  13  norm          13.548        6.3683        .66573E-08   -.40833E-05
  14  norm          .10000E-03    26.268        .27786E-06** at limit **
  15  Prefactor     .10000E-03    3.0924       -.16944E-06** at limit **
  16  Prefactor     .10000E-03    12.606       -.16831E-06** at limit **
  17  Prefactor     2.2561        34.242       -.23324E-05   -.47233E-04
  18  norm          1.3363        3.5069        .12444E-05   -.72539E-04
  19  Prefactor     10.379        9.4945        .12897E-05   -.12437E-03
  20  norm          2.3484        1.4947        .18325E-07   -.45204E-04
  21  Prefactor     .10000E-03    7.6789        .19031E-06** at limit **
  22  norm          10.644        8.7926       -.13471E-07   -.43938E-06
  23  Normalizat    1.2225        .17079       -.43305E-06    .58770E-05
  24  Prefactor     .85308        .11226        .33592E-08   -.37327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.30613
  Prefactor  = 100.494
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.96214
  norm       = 5.23571
  norm       = 13.5478
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25615
  norm       = 1.33635
  Prefactor  = 10.3786
  norm       = 2.34844
  Prefactor  = 0.0001
  norm       = 10.6436
  Normalizat = 1.22246
  Prefactor  = 0.853078
 **********
 **   18 **HESSE 
 **********

 FCN=   10141.31     FROM HESSE     STATUS=OK           395 CALLS     2697 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3061        .23965        .19885E-04   -1.5479    
   4  Prefactor     100.49        58.296        .40075E-04   -1.3700    
   5  norm          .10000E-03    4.4193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2673        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7530        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6961        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9621        1.5670        .56820E-04   -1.5180    
  12  norm          5.2357        2.8927        .11578E-03   -1.5250    
  13  norm          13.548        6.3572        .10882E-03   -1.4972    
  14  norm          .10000E-03    26.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2018        .34546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2561        36.266        .27372E-03   -1.5408    
  18  norm          1.3363        3.5280        .29890E-03   -1.5477    
  19  Prefactor     10.379        9.5641        .62185E-03   -1.5064    
  20  norm          2.3484        1.4912        .95187E-04   -1.5401    
  21  Prefactor     .10000E-03    7.6867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.644        8.7940        .12281E-03   -1.5055    
  23  Normalizat    1.2225        .20059        .29095E-03   -.85912    
  24  Prefactor     .85308        .13187        .22781E-03   -.97800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3377e-11
Minuit parameter uncertainties:
  1  0.000129334
  2  0.000122786
  3  0.239648
  4  58.3295
  5  4.91876e-06
  6  4.92839e-07
  7  5.94516e-07
  8  7.20893e-06
  9  1.07662e-06
  10  1.44374e-06
  11  1.56704
  12  2.89274
  13  6.35752
  14  1.9459e-05
  15  8.8154e-06
  16  2.14832e-05
  17  18.1037
  18  3.52857
  19  9.56553
  20  1.49124
  21  6.72912e-06
  22  8.79509
  23  0.200714
  24  0.131914
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.962e+00  1.567e+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.531e-01  1.319e-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.222e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.67
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.11e-07 +/- 4.74e-08
Energy Flux (Fixed Index): 6.33e-05 +/- 1.43e-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) = 10141.1899043
delta logL = 0.119768673485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10141.1771948
delta logL = 0.132478208317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2264       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2533       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84257       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=   10141.18     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2264        3.0984        .37303E-02    .66934E-03
   2  alpha         2.2534        .46976        .22741        .19226E-04
   3  Normalizat    1.2453        .17278        .65281E-01   -.23306E-05
   4  Prefactor     .84257        .11335        .44269E-01    .62575E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.2264
  alpha      = 2.25338
  Normalizat = 1.24532
  Prefactor  = 0.842573
 **********
 **   18 **HESSE 
 **********

 FCN=   10141.18     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2264        1.7003        .59041E-04   -1.5170    
   2  alpha         2.2534        .27227        .95426E-02   -.98808E-01
   3  Normalizat    1.2453        .20133        .28878E-03   -.85214    
   4  Prefactor     .84257        .13190        .22906E-03   -.98178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72562e-11
Minuit parameter uncertainties:
  1  1.7003
  2  0.272812
  3  0.201459
  4  0.131952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734692': 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) = 10141.1771947
delta logL = 0.132478218611

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.226e+00  1.700e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.253e+00  2.728e-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:  8.426e-01  1.320e-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.245e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.46
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.25 +/- 0.27
Photon Flux (Free Index): 1.94e-07 +/- 5.49e-08
Energy Flux (Free Index): 6.58e-05 +/- 1.60e-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/734692/cmap_HighResolution_260323201_260582401_4FGL_J1332.0-0509_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-07', energy_flux2='6.58e-05', photon_flux_error='4.74e-08', dlogl='1.32e-01', energy_flux='6.33e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-08 01:39:01.360288', photon_index_error2='0.27', photon_index2='2.25', ts='50.67', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.22', time_epoch_completed='1631090341.36', return_code='0', job_id='734692', GAL2='0.84', EG2='1.25', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.49e-08', ts2='50.46', photon_index='2.39' WHERE bin_id='81' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 734692: <4FGL_J1332.0-0509_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin81 203.02 -5.1611 260323201 260582401 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 :                                   732.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            798 sec.

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

