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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin127
RA = 203.02, Dec = -5.1611
tmin = 272246401, tmax = 272505601
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='734760', job_status='RUN', time_executed='2021-09-08 01:29:58.132937', time_epoch_executed='1631089798.13' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734760/ft1_4FGL_J1332.0-0509_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734760/ft1_4FGL_J1332.0-0509_daily_bin127.fits outfile=/scratch/kocevski/734760/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin127.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=272246401.0 tmax=272505601.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 2.51
user 2.32
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734760/ft1_filtered_4FGL_J1332.0-0509_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/734760/ltcube_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.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/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits
.....................!
real 17.58
user 17.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734760/ft1_filtered_4FGL_J1332.0-0509_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/734760/ltcube_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.fits outfile=/scratch/kocevski/734760/expmap_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.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/734760/ltcube_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.fits
.....................!
real 192.36
user 187.35
sys 4.49

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/734760/ft1_filtered_4FGL_J1332.0-0509_daily_bin127.fits scfile=/scratch/kocevski/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits outfile=/scratch/kocevski/734760/cmap_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.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.60
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734760/ft1_filtered_4FGL_J1332.0-0509_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/734760/ft2_4FGL_J1332.0-0509_daily_bin127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734760/Model_4FGL_J1332.0-0509_daily_bin127.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/734760/ft1_filtered_4FGL_J1332.0-0509_daily_bin127.fits.....................!
real 57.30
user 55.53
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8733       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    12.283       1.0000         .10000E-03   10000.    
     6 'norm      '    .34085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10671E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6104       1.0000         .10000E-03   10000.    
    12 'norm      '    15.557       1.0000         .10000E-03   10000.    
    13 'norm      '    14.283       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.804       1.0000         .10000E-03   10000.    
    18 'norm      '    13.716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
    22 'norm      '    27.226       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2503       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82666       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=   7353.448     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2785 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.310        .29102E-06** at limit **
   2  norm          2.8743        19.974        .15155E-04   -.12101E-03
   3  norm          3.6622        .44424       -.51725E-07    .29938E-03
   4  Prefactor     .10017E-03    409.37       -.14992E-04** at limit **
   5  norm          12.303        12.188       -.10109E-05   -.34766E-07
   6  norm          .10000E-03    7.8858        .51009E-06** at limit **
   7  Prefactor     3.4508        4.4709        .40022E-07   -.11054E-04
   8  Prefactor     .10030E-03    9.4026        .21228E-05** at limit **
   9  Prefactor     .10000E-03    9.8135       -.33982E-06** at limit **
  10  Prefactor     .10000E-03    7.6937       -.70407E-08** at limit **
  11  norm          6.6100        2.0740        .68280E-07   -.20910E-03
  12  norm          15.556        5.4664        .32335E-07    .26497E-05
  13  norm          14.282        9.9472        .58974E-07   -.66109E-05
  14  norm          .10000E-03    20.668       -.40049E-06** at limit **
  15  Prefactor     2.5086        3.6428        .32006E-06   -.29203E-04
  16  Prefactor     .10000E-03    18.503        .34026E-06** at limit **
  17  Prefactor     79.830        55.875        .68818E-06    .14201E-03
  18  norm          13.716        6.6420        .24153E-07   -.10685E-04
  19  Prefactor     .10000E-03    8.8975        .15236E-05** at limit **
  20  norm          .10000E-03    1.1656       -.51402E-07** at limit **
  21  Prefactor     12.545        38.982        .28141E-05    .12796E-03
  22  norm          27.223        18.330        .52783E-07   -.59904E-05
  23  Normalizat    1.2503        .23307       -.19520E-05   -.68703E-04
  24  Prefactor     .82671        .14863        .45125E-06   -.20691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.87428
  norm       = 3.66225
  Prefactor  = 0.000100166
  norm       = 12.3029
  norm       = 0.0001
  Prefactor  = 3.45076
  Prefactor  = 0.000100298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61003
  norm       = 15.5556
  norm       = 14.2821
  norm       = 0.0001
  Prefactor  = 2.50861
  Prefactor  = 0.0001
  Prefactor  = 79.8296
  norm       = 13.7163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5452
  norm       = 27.2225
  Normalizat = 1.25026
  Prefactor  = 0.826713
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.448     FROM HESSE     STATUS=OK           401 CALLS     3186 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8743        20.187        .11990E-02   -1.5369    
   3  norm          3.6622        .44578        .18921E-04   -1.5325    
   4  Prefactor     .10017E-03    418.06        .20754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.303        12.146        .11430E-03   -1.5006    
   6  norm          .10000E-03    42.503        .46538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4508        4.4652        .20099E-03   -1.5336    
   8  Prefactor     .10030E-03    62.485        .49653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.6100        2.0788        .65408E-04   -1.5194    
  12  norm          15.556        5.4688        .10155E-03   -1.4919    
  13  norm          14.282        9.9413        .10598E-03   -1.4952    
  14  norm          .10000E-03    20.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5086        3.6192        .18687E-03   -1.5391    
  16  Prefactor     .10000E-03    18.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     79.830        56.005        .44957E-04   -1.3919    
  18  norm          13.716        6.6374        .10815E-03   -1.4967    
  19  Prefactor     .10000E-03    8.9428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1930        .90340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.545        39.112        .11328E-03   -1.4999    
  22  norm          27.223        18.340        .76777E-04   -1.4664    
  23  Normalizat    1.2503        .27571        .32287E-03   -.85064    
  24  Prefactor     .82671        .17562        .25298E-03   -.98751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33846e-09
Minuit parameter uncertainties:
  1  0.000128105
  2  15.2418
  3  0.445776
  4  0.016781
  5  12.1488
  6  0.000215074
  7  4.4656
  8  0.00864284
  9  1.08223e-05
  10  1.36142e-06
  11  2.07879
  12  5.46893
  13  9.94243
  14  0.000147388
  15  3.61951
  16  1.90608e-05
  17  56.0415
  18  6.63772
  19  7.86046e-06
  20  2.95502e-06
  21  39.1924
  22  18.3439
  23  0.276036
  24  0.175736
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.610e+00  2.079e+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.267e-01  1.757e-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.250e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.45
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.00e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 6.01e-05 +/- 1.89e-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) = 7353.44431673
delta logL = 0.00383102768137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7353.4435555
delta logL = 0.00459225262966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5418       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4261       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82878       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=   7353.444     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5417        2.0697       -.14434E-06    .15688E-02
   2  alpha         2.4262        .34445        .21993E-05    .86642E-04
   3  Normalizat    1.2456        .22780       -.10916E-06   -.21445E-04
   4  Prefactor     .82885        .14723        .92819E-07   -.24026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54175
  alpha      = 2.42617
  Normalizat = 1.24556
  Prefactor  = 0.828854
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.444     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5417        2.1963        .64842E-04   -1.5196    
   2  alpha         2.4262        .33904        .98257E-02   -.29536E-01
   3  Normalizat    1.2456        .27091        .32338E-03   -.85206    
   4  Prefactor     .82885        .17421        .25269E-03   -.98673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20995e-10
Minuit parameter uncertainties:
  1  2.19636
  2  0.340091
  3  0.271222
  4  0.174331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734760': 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) = 7353.44355541
delta logL = 0.00459234405025

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.542e+00  2.196e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.426e+00  3.401e-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.289e-01  1.743e-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.246e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.07
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.43 +/- 0.34
Photon Flux (Free Index): 2.04e-07 +/- 7.37e-08
Energy Flux (Free Index): 5.97e-05 +/- 1.93e-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/734760/cmap_HighResolution_272246401_272505601_4FGL_J1332.0-0509_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-07', energy_flux2='5.97e-05', photon_flux_error='6.29e-08', dlogl='4.59e-03', energy_flux='6.01e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-08 01:41:07.105277', photon_index_error2='0.34', photon_index2='2.43', ts='23.45', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.25', time_epoch_completed='1631090467.11', return_code='0', job_id='734760', GAL2='0.83', EG2='1.25', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='7.37e-08', ts2='23.07', photon_index='2.39' WHERE bin_id='127' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 734760: <4FGL_J1332.0-0509_daily_bin127> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin127> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:49 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:26:05 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:26:05 2021
Terminated at Wed Sep  8 01:41:07 2021
Results reported at Wed Sep  8 01:41:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin127 203.02 -5.1611 272246401 272505601 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 :                                   666.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            918 sec.

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

