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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin226
RA = 203.02, Dec = -5.1611
tmin = 297907201, tmax = 298166401
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='735870', job_status='RUN', time_executed='2021-09-08 01:32:55.746701', time_epoch_executed='1631089975.75' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735870/ft1_4FGL_J1332.0-0509_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735870/ft1_4FGL_J1332.0-0509_daily_bin226.fits outfile=/scratch/kocevski/735870/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin226.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=297907201.0 tmax=298166401.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.60
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/735870/ltcube_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.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/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits
.....................!
real 14.96
user 14.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/735870/ltcube_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.fits outfile=/scratch/kocevski/735870/expmap_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.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/735870/ltcube_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.fits
.....................!
real 192.45
user 187.01
sys 4.88

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/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits scfile=/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits outfile=/scratch/kocevski/735870/cmap_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits scfile=/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits outfile=/scratch/kocevski/735870/cmap_HighResolution_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.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.71
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/735870/ft2_4FGL_J1332.0-0509_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735870/Model_4FGL_J1332.0-0509_daily_bin226.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/735870/ft1_filtered_4FGL_J1332.0-0509_daily_bin226.fits.....................!
real 66.67
user 64.99
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .16534E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2656       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 '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0795       1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0599       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2243       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6517       1.0000         .10000E-03   10000.    
    18 'norm      '    .61996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24458E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3628       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.036       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0468       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=   8916.534     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2763 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.693       -.16521E-06** at limit **
   2  norm          .10000E-03    28.402       -.12199E-05** at limit **
   3  norm          .71217        .19216        .11140E-07    .20335E-02
   4  Prefactor     .10000E-03    13.291       -.71171E-07** at limit **
   5  norm          4.2639        7.1469        .53563E-06    .25613E-03
   6  norm          .10000E-03    2.5403       -.76835E-07** at limit **
   7  Prefactor     .10000E-03    3.4312       -.24982E-06** at limit **
   8  Prefactor     .10000E-03    4.1253       -.16968E-06** at limit **
   9  Prefactor     7.2469        7.5145       -.29274E-07    .14330E-03
  10  Prefactor     .10000E-03    12.907        .82490E-07** at limit **
  11  norm          7.0793        1.7127        .22791E-06    .34729E-02
  12  norm          .10000E-03    2.0368        .12281E-07** at limit **
  13  norm          7.0569        5.2247        .44276E-07    .10839E-03
  14  norm          6.6724        12.871        .29593E-06    .38644E-04
  15  Prefactor     3.2225        4.3376        .12338E-05    .10758E-02
  16  Prefactor     12.886        13.496        .57592E-06    .11731E-03
  17  Prefactor     8.7579        44.999       -.11572E-06    .16665E-04
  18  norm          .61550        5.2876        .25145E-05   -.71888E-03
  19  Prefactor     .10114E-03    14.481        .39712E-05** at limit **
  20  norm          2.3628        2.2939        .29991E-06    .73362E-03
  21  Prefactor     .10000E-03    9.1167       -.78403E-07** at limit **
  22  norm          22.022        15.152        .14815E-06    .36571E-04
  23  Normalizat    1.0150        .19869        .35880E-05    .20388E-03
  24  Prefactor     1.0469        .13230       -.27335E-05   -.13571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.712171
  Prefactor  = 0.0001
  norm       = 4.26394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.2469
  Prefactor  = 0.0001
  norm       = 7.07935
  norm       = 0.0001
  norm       = 7.05691
  norm       = 6.67238
  Prefactor  = 3.22252
  Prefactor  = 12.8858
  Prefactor  = 8.75791
  norm       = 0.615503
  Prefactor  = 0.00010114
  norm       = 2.36281
  Prefactor  = 0.0001
  norm       = 22.0219
  Normalizat = 1.01495
  Prefactor  = 1.04686
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.534     FROM HESSE     STATUS=OK           405 CALLS     3168 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .71217        .19190        .20544E-04   -1.5539    
   4  Prefactor     .10000E-03    13.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2639        7.1394        .19508E-03   -1.5295    
   6  norm          .10000E-03    2.5426        .14699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4601        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2469        7.5136        .14898E-03   -1.5170    
  10  Prefactor     .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0793        1.7427        .29105E-03   -1.5176    
  12  norm          .10000E-03    2.1043        .26146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0569        5.1877        .15098E-03   -1.5177    
  14  norm          6.6724        12.863        .15542E-03   -1.5191    
  15  Prefactor     3.2225        4.5194        .21181E-03   -1.5349    
  16  Prefactor     12.886        13.455        .11169E-03   -1.4990    
  17  Prefactor     8.7579        44.713        .13628E-03   -1.5116    
  18  norm          .61550        11.437        .28800E-02   -1.5551    
  19  Prefactor     .10114E-03    101.52        .53637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3628        2.2949        .13467E-03   -1.5401    
  21  Prefactor     .10000E-03    9.1211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.022        15.153        .85326E-04   -1.4769    
  23  Normalizat    1.0150        .21797        .31197E-03   -.92531    
  24  Prefactor     1.0469        .14378        .20868E-03   -.91183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42859e-08
Minuit parameter uncertainties:
  1  2.72046e-05
  2  0.000346546
  3  0.191895
  4  9.54227e-06
  5  7.14077
  6  6.47288e-06
  7  2.46736e-05
  8  1.9911e-05
  9  7.51453
  10  1.22534e-05
  11  1.7427
  12  3.07205e-06
  13  5.18807
  14  12.8684
  15  4.51988
  16  13.4585
  17  39.6243
  18  5.30712
  19  0.0215538
  20  2.29496
  21  2.06324e-05
  22  15.1555
  23  0.218161
  24  0.14383
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.079e+00  1.743e+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.047e+00  1.438e-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.015e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.67
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 6.44e-05 +/- 1.59e-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) = 8916.16600897
delta logL = 0.367955790731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8916.15028411
delta logL = 0.383680650873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3934       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6616       1.0000          .0000       5.0000    
     3 'Normalizat'    .96670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0689       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=   8916.150     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3926        20.037        .39684E-02    .14320E-03
   2  alpha         2.6615        3.7604        .20043        .62103E-04
   3  Normalizat    .96684        .17875        .71980E-01    .25465E-04
   4  Prefactor     1.0689        .99471E-01    .38910E-01    .63379E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39265
  alpha      = 2.66148
  Normalizat = 0.96684
  Prefactor  = 1.06894
 **********
 **   18 **HESSE 
 **********

 FCN=   8916.150     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3926        1.8624        .52873E-04   -1.5202    
   2  alpha         2.6615        .31581        .85405E-02    .64636E-01
   3  Normalizat    .96684        .21736        .31848E-03   -.94150    
   4  Prefactor     1.0689        .14393        .20678E-03   -.90465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00421e-09
Minuit parameter uncertainties:
  1  1.86237
  2  0.31666
  3  0.217563
  4  0.143986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735870': 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) = 8916.15028227
delta logL = 0.383682490394

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.393e+00  1.862e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.661e+00  3.167e-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.069e+00  1.440e-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.668e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.54
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.66 +/- 0.32
Photon Flux (Free Index): 2.49e-07 +/- 6.86e-08
Energy Flux (Free Index): 6.21e-05 +/- 1.50e-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/735870/cmap_HighResolution_297907201_298166401_4FGL_J1332.0-0509_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='6.21e-05', photon_flux_error='5.27e-08', dlogl='3.84e-01', energy_flux='6.44e-05', photon_flux2='2.49e-07', job_status='DONE', time_completed='2021-09-08 01:45:11.376921', photon_index_error2='0.32', photon_index2='2.66', ts='40.67', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.01', time_epoch_completed='1631090711.38', return_code='0', job_id='735870', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='6.86e-08', ts2='41.54', photon_index='2.39' WHERE bin_id='226' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:45:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 735870: <4FGL_J1332.0-0509_daily_bin226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin226 203.02 -5.1611 297907201 298166401 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            864 sec.

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

