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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin177
RA = 203.02, Dec = -5.1611
tmin = 285206401, tmax = 285465601
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='735797', job_status='RUN', time_executed='2021-09-08 01:32:44.605000', time_epoch_executed='1631089964.61' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735797/ft1_4FGL_J1332.0-0509_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits


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

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

Done.
real 3.86
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735797/ft1_filtered_4FGL_J1332.0-0509_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/735797/ltcube_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.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/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits
.....................!
real 16.96
user 16.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735797/ft1_filtered_4FGL_J1332.0-0509_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/735797/ltcube_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.fits outfile=/scratch/kocevski/735797/expmap_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.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/735797/ltcube_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.fits
.....................!
real 194.46
user 188.42
sys 4.99

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/735797/ft1_filtered_4FGL_J1332.0-0509_daily_bin177.fits scfile=/scratch/kocevski/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits outfile=/scratch/kocevski/735797/cmap_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.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/735797/ft1_filtered_4FGL_J1332.0-0509_daily_bin177.fits scfile=/scratch/kocevski/735797/ft2_4FGL_J1332.0-0509_daily_bin177.fits outfile=/scratch/kocevski/735797/cmap_HighResolution_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19464E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.599       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16908E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.370       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7097       1.0000         .10000E-03   10000.    
    12 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10344E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12036E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.893       1.0000         .10000E-03   10000.    
    18 'norm      '    17.163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.925       1.0000         .10000E-03   10000.    
    22 'norm      '    22.811       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0845       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0698       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5360.406     FROM MIGRAD    STATUS=CONVERGED    979 CALLS     3198 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    128.73        .18142E-02** at limit **
   2  norm          .10000E-03    7.9008        .18142E-02** at limit **
   3  norm          1.7524        .39938        .20681E-04    .13798E-02
   4  Prefactor     .10004E-03    48.693        .16456    ** at limit **
   5  norm          .10000E-03    3.2523        .12890E-02** at limit **
   6  norm          .10000E-03    3.2149        .12820E-02** at limit **
   7  Prefactor     14.590        13.293        .10483E-03    .27244E-03
   8  Prefactor     .10000E-03    39.183        .18142E-02** at limit **
   9  Prefactor     .10001E-03    85.115        .41180E-02** at limit **
  10  Prefactor     29.400        23.974        .73928E-04    .22695E-03
  11  norm          2.7096        1.6652        .71036E-04    .55566E-03
  12  norm          .10000E-03    2.7637        .11817E-02** at limit **
  13  norm          .10008E-03    28.576        .32534E-02** at limit **
  14  norm          17.268        35.711        .96496E-04    .59850E-04
  15  Prefactor     .10034E-03    50.631        .30158E-02** at limit **
  16  Prefactor     5.6441        19.207        .16916E-03    .76213E-04
  17  Prefactor     31.876        55.743        .70952E-04    .78514E-05
  18  norm          17.140        12.475        .96676E-04    .30152E-03
  19  Prefactor     .10000E-03    3.9022        .14121E-02** at limit **
  20  norm          .10000E-03    .99590        .70920E-03** at limit **
  21  Prefactor     48.923        37.532        .57330E-04    .11462E-04
  22  norm          22.813        20.794        .83867E-04    .10845E-04
  23  Normalizat    1.0844        .29709        .33353E-03    .24730E-03
  24  Prefactor     1.0697        .19849        .22327E-03    .34494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 1.75243
  Prefactor  = 0.000100041
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5904
  Prefactor  = 0.000100002
  Prefactor  = 0.000100015
  Prefactor  = 29.4
  norm       = 2.70955
  norm       = 0.0001
  norm       = 0.000100078
  norm       = 17.2678
  Prefactor  = 0.000100335
  Prefactor  = 5.64411
  Prefactor  = 31.8762
  norm       = 17.1397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.9226
  norm       = 22.8134
  Normalizat = 1.08441
  Prefactor  = 1.06972
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.406     FROM HESSE     STATUS=OK           383 CALLS     3581 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.9008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7524        .39937        .82722E-06   -1.5443    
   4  Prefactor     .10004E-03    48.913        .16391       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2524        .25779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2149        .25640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.590        13.289        .41930E-05   -1.4944    
   8  Prefactor     .10000E-03    39.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    87.856        .16472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.400        23.945        .14786E-04   -1.4623    
  11  norm          2.7096        1.6652        .28415E-05   -1.5379    
  12  norm          .10000E-03    2.7638        .23634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10008E-03    28.741        .65067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.268        35.714        .38598E-05   -1.4877    
  15  Prefactor     .10034E-03    51.101        .60317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6441        19.207        .67664E-05   -1.5233    
  17  Prefactor     31.876        55.739        .28381E-05   -1.4578    
  18  norm          17.140        12.450        .38670E-05   -1.4880    
  19  Prefactor     .10000E-03    3.9023        .28242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .99597        .14184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     48.923        37.531        .11466E-04   -1.4308    
  22  norm          22.813        20.795        .33547E-05   -1.4752    
  23  Normalizat    1.0844        .29716        .13341E-04   -.90254    
  24  Prefactor     1.0697        .19864        .44653E-04   -.90440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8653e-09
Minuit parameter uncertainties:
  1  0.00117329
  2  6.57827e-06
  3  0.399366
  4  0.00282805
  5  8.00451e-06
  6  2.02346e-06
  7  13.2913
  8  0.000594381
  9  0.00227067
  10  23.9532
  11  1.66518
  12  4.64019e-05
  13  0.00300178
  14  35.7585
  15  0.00828284
  16  19.228
  17  55.8305
  18  12.4524
  19  6.67867e-06
  20  8.39454e-07
  21  37.5494
  22  20.8011
  23  0.297615
  24  0.198782
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.710e+00  1.665e+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:  1.070e+00  1.988e-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.084e+00  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.51e-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) = 5360.27995543
delta logL = 0.126332659989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5360.27097222
delta logL = 0.135315868379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0558       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       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=   5360.271     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9086        5.1367        .59559E-02   -.44983E-02
   2  alpha         2.0558        1.4559        .40450       -.41153E-04
   3  Normalizat    1.1072        .26147        .74674E-01    .25496E-04
   4  Prefactor     1.0583        .17564        .39446E-01   -.27717E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90865
  alpha      = 2.05581
  Normalizat = 1.10722
  Prefactor  = 1.05829
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.271     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9086        1.8034        .74665E-04   -1.5367    
   2  alpha         2.0558        .61699        .15615E-01   -.17862    
   3  Normalizat    1.1072        .29180        .33048E-03   -.89520    
   4  Prefactor     1.0583        .19410        .22428E-03   -.90811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44135e-09
Minuit parameter uncertainties:
  1  1.80347
  2  0.623648
  3  0.292227
  4  0.194229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735797': 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) = 5360.27097222
delta logL = 0.135315871928

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.909e+00  1.803e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.056e+00  6.236e-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:  1.058e+00  1.942e-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.107e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.06 +/- 0.62
Photon Flux (Free Index): 6.72e-08 +/- 5.03e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.89e-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/735797/cmap_HighResolution_285206401_285465601_4FGL_J1332.0-0509_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.79e-05', photon_flux_error='5.03e-08', dlogl='1.35e-01', energy_flux='2.46e-05', photon_flux2='6.72e-08', job_status='DONE', time_completed='2021-09-08 01:42:54.011704', photon_index_error2='0.62', photon_index2='2.06', ts='6.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.08', time_epoch_completed='1631090574.01', return_code='0', job_id='735797', GAL2='1.06', EG2='1.11', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.03e-08', ts2='6.44', photon_index='2.39' WHERE bin_id='177' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 735797: <4FGL_J1332.0-0509_daily_bin177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin177 203.02 -5.1611 285206401 285465601 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            731 sec.

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

