/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 71 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin301
RA = 203.02, Dec = -5.1611
tmin = 317347201, tmax = 317606401
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='735982', job_status='RUN', time_executed='2021-09-08 01:33:29.837924', time_epoch_executed='1631090009.84' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735982/ft1_4FGL_J1332.0-0509_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735982/ft2_4FGL_J1332.0-0509_daily_bin301.fits


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

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

Done.
real 4.11
user 3.63
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735982/ft1_filtered_4FGL_J1332.0-0509_daily_bin301.fits" evtable="EVENTS" scfile=/scratch/kocevski/735982/ft2_4FGL_J1332.0-0509_daily_bin301.fits sctable="SC_DATA" outfile=/scratch/kocevski/735982/ltcube_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.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/735982/ft2_4FGL_J1332.0-0509_daily_bin301.fits
.....................!
real 17.27
user 16.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735982/ft1_filtered_4FGL_J1332.0-0509_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/735982/ft2_4FGL_J1332.0-0509_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/735982/ltcube_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.fits outfile=/scratch/kocevski/735982/expmap_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.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/735982/ltcube_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.fits
.....................!
real 194.43
user 187.04
sys 5.07

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/735982/ft1_filtered_4FGL_J1332.0-0509_daily_bin301.fits scfile=/scratch/kocevski/735982/ft2_4FGL_J1332.0-0509_daily_bin301.fits outfile=/scratch/kocevski/735982/cmap_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.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.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.056       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.003       1.0000         .10000E-03   10000.    
     5 'norm      '    21.177       1.0000         .10000E-03   10000.    
     6 'norm      '    .55990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7889       1.0000         .10000E-03   10000.    
    12 'norm      '    .42558E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    6.0435       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0245       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.349       1.0000         .10000E-03   10000.    
    18 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7062       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5792       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83600       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=   6948.870     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2804 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.364       -.15070E-05** at limit **
   2  norm          16.056        31.680        .36726E-07    .26081E-04
   3  norm          1.1930        .34271        .20145E-07    .23980E-02
   4  Prefactor     88.999        76.695        .18930E-06   -.32704E-05
   5  norm          21.169        16.597       -.10484E-06   -.12440E-03
   6  norm          .61524        55.284       -.19368E-04   -.11627E-04
   7  Prefactor     .10000E-03    9.3523       -.34805E-06** at limit **
   8  Prefactor     .10000E-03    25.025        .10176E-06** at limit **
   9  Prefactor     28.735        15.611        .31154E-06   -.39053E-04
  10  Prefactor     14.006        18.455        .17947E-05    .26139E-03
  11  norm          2.7886        1.8131        .43917E-07    .38903E-03
  12  norm          .10077E-03    2.9726       -.28047E-05** at limit **
  13  norm          6.0469        8.4849        .85170E-06    .49729E-03
  14  norm          .10000E-03    23.122        .12322E-05** at limit **
  15  Prefactor     3.0270        4.5614       -.24062E-06   -.40841E-03
  16  Prefactor     .10000E-03    5.2121       -.21712E-07** at limit **
  17  Prefactor     25.357        52.168       -.11461E-05   -.37490E-04
  18  norm          .10000E-03    10.889       -.17785E-07** at limit **
  19  Prefactor     .10000E-03    4.9910       -.67601E-07** at limit **
  20  norm          3.7066        2.6665       -.16407E-07   -.73242E-04
  21  Prefactor     .10000E-03    12.793       -.77723E-06** at limit **
  22  norm          .10000E-03    12.252       -.34136E-06** at limit **
  23  Normalizat    1.5795        .24864       -.50739E-06   -.30307E-03
  24  Prefactor     .83578        .15542        .50542E-06   -.32355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.0564
  norm       = 1.19298
  Prefactor  = 88.999
  norm       = 21.1694
  norm       = 0.615237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7354
  Prefactor  = 14.0058
  norm       = 2.78863
  norm       = 0.000100768
  norm       = 6.04689
  norm       = 0.0001
  Prefactor  = 3.02699
  Prefactor  = 0.0001
  Prefactor  = 25.3575
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.70659
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.57954
  Prefactor  = 0.835778
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.870     FROM HESSE     STATUS=OK           407 CALLS     3211 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.056        31.676        .99953E-04   -1.4906    
   3  norm          1.1930        .34255        .24340E-04   -1.5490    
   4  Prefactor     88.999        76.779        .42590E-04   -1.3818    
   5  norm          21.169        16.579        .87037E-04   -1.4787    
   6  norm          .61524        55.549        .47384E-02   -1.5551    
   7  Prefactor     .10000E-03    9.5001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.735        15.608        .74728E-04   -1.4635    
  10  Prefactor     14.006        23.774        .10712E-03   -1.4959    
  11  norm          2.7886        1.8115        .85398E-04   -1.5374    
  12  norm          .10077E-03    6.7068        .38681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0469        8.5870        .16332E-03   -1.5216    
  14  norm          .10000E-03    23.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0270        4.5366        .20827E-03   -1.5360    
  16  Prefactor     .10000E-03    5.2140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.357        52.253        .79564E-04   -1.4700    
  18  norm          .10000E-03    11.095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7066        2.6650        .11108E-03   -1.5323    
  21  Prefactor     .10000E-03    12.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5795        .29573        .30363E-03   -.75567    
  24  Prefactor     .83578        .18323        .25527E-03   -.98423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63234e-08
Minuit parameter uncertainties:
  1  0.000127957
  2  31.7095
  3  0.342549
  4  76.8647
  5  16.5828
  6  11.7023
  7  9.01673e-06
  8  0.000145012
  9  15.6099
  10  23.7902
  11  1.81149
  12  0.00453835
  13  8.5888
  14  1.41289e-05
  15  4.53707
  16  6.34462e-06
  17  52.3474
  18  0.00031898
  19  1.08365e-05
  20  2.66511
  21  5.42335e-05
  22  1.29541e-05
  23  0.296054
  24  0.183366
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.789e+00  1.811e+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.358e-01  1.834e-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.580e+00  2.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.69
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.43e-08 +/- 5.48e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/735982/likelihoodResults_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.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) = 6948.29088082
delta logL = 0.57900025769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6948.28174286
delta logL = 0.588138216991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3751       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0521       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86201       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=   6948.282     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3755        23.308        .66458E-02    .56610E-03
   2  alpha         3.0515        3.9600        .35189        .47109E-04
   3  Normalizat    1.5150        .97719E-01    .69737E-01    .14234E-04
   4  Prefactor     .86210        .62936E-01    .44519E-01    .14269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37554
  alpha      = 3.05153
  Normalizat = 1.51496
  Prefactor  = 0.8621
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.282     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3755        1.7026        .65421E-04   -1.5400    
   2  alpha         3.0515        .63643        .14343E-01    .22244    
   3  Normalizat    1.5150        .28902        .30852E-03   -.77359    
   4  Prefactor     .86210        .18062        .25168E-03   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68552e-12
Minuit parameter uncertainties:
  1  1.70261
  2  0.643884
  3  0.289335
  4  0.180745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735982': 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) = 6948.28174207
delta logL = 0.588139008728

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.376e+00  1.703e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.052e+00  6.439e-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.621e-01  1.807e-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.515e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.05 +/- 0.64
Photon Flux (Free Index): 1.39e-07 +/- 8.34e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.56e-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/735982/cmap_HighResolution_317347201_317606401_4FGL_J1332.0-0509_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-05', comment='SUCCESS', photon_flux='8.43e-08', energy_flux2='2.86e-05', photon_flux_error='5.48e-08', dlogl='5.88e-01', energy_flux='2.54e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-08 01:45:41.263825', photon_index_error2='0.64', photon_index2='3.05', ts='3.69', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='1.56e-05', EG='1.58', time_epoch_completed='1631090741.26', return_code='0', job_id='735982', GAL2='0.86', EG2='1.51', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='8.34e-08', ts2='4.96', photon_index='2.39' WHERE bin_id='301' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:45:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 735982: <4FGL_J1332.0-0509_daily_bin301> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin301> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:55 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:32:00 2021
Terminated at Wed Sep  8 01:45:42 2021
Results reported at Wed Sep  8 01:45:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin301 203.02 -5.1611 317347201 317606401 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 :                                   721.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            887 sec.

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

