/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 116 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 = 7346
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin491
RA = 203.02, Dec = -5.1611
tmin = 366595201, tmax = 366854401
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='737326', job_status='RUN', time_executed='2021-09-08 01:39:35.342319', time_epoch_executed='1631090375.34' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737326

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737326/ft1_4FGL_J1332.0-0509_daily_bin491.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737326/ft1_4FGL_J1332.0-0509_daily_bin491.fits outfile=/scratch/kocevski/737326/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin491.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=366595201.0 tmax=366854401.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 5.25
user 4.94
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737326/ft1_filtered_4FGL_J1332.0-0509_daily_bin491.fits" evtable="EVENTS" scfile=/scratch/kocevski/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits sctable="SC_DATA" outfile=/scratch/kocevski/737326/ltcube_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.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/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits
.....................!
real 14.44
user 14.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737326/ft1_filtered_4FGL_J1332.0-0509_daily_bin491.fits evtable="EVENTS" scfile=/scratch/kocevski/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits sctable="SC_DATA" expcube=/scratch/kocevski/737326/ltcube_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.fits outfile=/scratch/kocevski/737326/expmap_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.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/737326/ltcube_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.fits
.....................!
real 191.41
user 186.38
sys 4.42

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/737326/ft1_filtered_4FGL_J1332.0-0509_daily_bin491.fits scfile=/scratch/kocevski/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits outfile=/scratch/kocevski/737326/cmap_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.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.56
user 0.38
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737326/ft1_filtered_4FGL_J1332.0-0509_daily_bin491.fits evtable="EVENTS" scfile=/scratch/kocevski/737326/ft2_4FGL_J1332.0-0509_daily_bin491.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737326/Model_4FGL_J1332.0-0509_daily_bin491.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/737326/ft1_filtered_4FGL_J1332.0-0509_daily_bin491.fits.....................!
real 61.79
user 60.39
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    30.316       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.736       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2243       1.0000         .10000E-03   10000.    
    12 'norm      '    .14635E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.145       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.704       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .16878E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.517       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98675       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8359.993     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2745 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.778         .0000    ** at limit **
   2  norm          .10000E-03    9.6615         .0000    ** at limit **
   3  norm          .40270        .17986         .0000        .32469E-02
   4  Prefactor     .10000E-03    19.861         .0000    ** at limit **
   5  norm          30.315        11.664         .0000        .80040E-04
   6  norm          2.9995        4.6256         .0000        .43296E-02
   7  Prefactor     4.2796        9.2097         .0000        .51394E-02
   8  Prefactor     .10000E-03    4.7464         .0000    ** at limit **
   9  Prefactor     .10000E-03    4.0496         .0000    ** at limit **
  10  Prefactor     18.724        16.781         .0000        .81866E-03
  11  norm          3.2241        1.3754         .0000        .11457E-03
  12  norm          .10000E-03    1.8483         .0000    ** at limit **
  13  norm          16.143        6.6971         .0000        .97800E-03
  14  norm          .10000E-03    7.6597         .0000    ** at limit **
  15  Prefactor     2.0796        3.0794         .0000        .81453E-03
  16  Prefactor     15.701        16.557         .0000        .33559E-03
  17  Prefactor     .10000E-03    81.325         .0000    ** at limit **
  18  norm          .10000E-03    2.7778         .0000    ** at limit **
  19  Prefactor     .10000E-03    3.1510         .0000    ** at limit **
  20  norm          .10000E-03    .83036         .0000    ** at limit **
  21  Prefactor     .10000E-03    16.910         .0000    ** at limit **
  22  norm          10.518        10.137         .0000        .16490E-05
  23  Normalizat    1.1222        .19106         .0000        .39196E-04
  24  Prefactor     .98665        .12520         .0000        .29092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.402697
  Prefactor  = 0.0001
  norm       = 30.3153
  norm       = 2.99951
  Prefactor  = 4.27964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.724
  norm       = 3.22411
  norm       = 0.0001
  norm       = 16.1434
  norm       = 0.0001
  Prefactor  = 2.07962
  Prefactor  = 15.7007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5175
  Normalizat = 1.12223
  Prefactor  = 0.986645
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.993     FROM HESSE     STATUS=OK           397 CALLS     3142 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .40270        .17805        .24687E-04   -1.5581    
   4  Prefactor     .10000E-03    19.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          30.315        11.673        .72769E-04   -1.4606    
   6  norm          2.9995        4.6128        .11719E-02   -1.5362    
   7  Prefactor     4.2796        9.1793        .97370E-03   -1.5294    
   8  Prefactor     .10000E-03    4.7514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0906        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.724        14.905        .92530E-04   -1.4842    
  11  norm          3.2241        1.3768        .66629E-04   -1.5349    
  12  norm          .10000E-03    4.1685        .20204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.143        6.5998        .99678E-04   -1.4904    
  14  norm          .10000E-03    7.6606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0796        3.0575        .18622E-03   -1.5420    
  16  Prefactor     15.701        16.583        .50534E-03   -1.4915    
  17  Prefactor     .10000E-03    83.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8180        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1559        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3745        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.518        10.138        .12355E-03   -1.5059    
  23  Normalizat    1.1222        .22679        .29845E-03   -.89041    
  24  Prefactor     .98665        .14864        .21350E-03   -.93176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87327e-10
Minuit parameter uncertainties:
  1  0.000143511
  2  7.11135e-06
  3  0.178054
  4  6.29694e-07
  5  11.6736
  6  4.61337
  7  9.18228
  8  9.37731e-06
  9  1.68365e-05
  10  14.9076
  11  1.37677
  12  1.45583e-05
  13  6.60011
  14  9.99064e-06
  15  3.05775
  16  16.5877
  17  0.000187676
  18  3.42352e-07
  19  7.78925e-06
  20  8.07992e-07
  21  1.09774e-05
  22  10.1396
  23  0.226985
  24  0.1487
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.224e+00  1.377e+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:  9.866e-01  1.487e-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.122e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.11
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.75e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.25e-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) = 8359.59030356
delta logL = 0.402969864808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8359.58918979
delta logL = 0.404083642159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7678       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0104       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=   8359.589     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      261 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7677        16.505        .61159E-03    .20702E-02
   2  alpha         2.8624        3.9165        .31803        .53462E-04
   3  Normalizat    1.0702        .11813        .68823E-01    .50415E-04
   4  Prefactor     1.0102        .63238E-01    .43273E-01    .24385E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76771
  alpha      = 2.86243
  Normalizat = 1.0702
  Prefactor  = 1.01017
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.589     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7677        1.4414        .24464E-04   -1.5375    
   2  alpha         2.8624        .54959        .12764E-01    .14548    
   3  Normalizat    1.0702        .22820        .30450E-03   -.90715    
   4  Prefactor     1.0102        .15074        .21129E-03   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06328e-09
Minuit parameter uncertainties:
  1  1.44139
  2  0.554216
  3  0.228408
  4  0.150806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737326': 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) = 8359.58918861
delta logL = 0.404084814812

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.768e+00  1.441e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.862e+00  5.542e-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.010e+00  1.508e-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.070e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.04
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.86 +/- 0.55
Photon Flux (Free Index): 1.32e-07 +/- 6.08e-08
Energy Flux (Free Index): 2.96e-05 +/- 1.16e-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/737326/cmap_HighResolution_366595201_366854401_4FGL_J1332.0-0509_daily_bin491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.75e-08', energy_flux2='2.96e-05', photon_flux_error='4.16e-08', dlogl='4.04e-01', energy_flux='2.93e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 01:51:32.850978', photon_index_error2='0.55', photon_index2='2.86', ts='11.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.12', time_epoch_completed='1631091092.85', return_code='0', job_id='737326', GAL2='1.01', EG2='1.07', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.08e-08', ts2='12.04', photon_index='2.39' WHERE bin_id='491' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 737326: <4FGL_J1332.0-0509_daily_bin491> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin491> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:36 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:27 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:37:27 2021
Terminated at Wed Sep  8 01:51:33 2021
Results reported at Wed Sep  8 01:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin491 203.02 -5.1611 366595201 366854401 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 :                                   714.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            957 sec.

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

