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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin174
RA = 203.02, Dec = -5.1611
tmin = 284428801, tmax = 284688001
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='735793', job_status='RUN', time_executed='2021-09-08 01:34:39.160753', time_epoch_executed='1631090079.16' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735793/ft1_4FGL_J1332.0-0509_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735793/ft1_4FGL_J1332.0-0509_daily_bin174.fits outfile=/scratch/kocevski/735793/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin174.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=284428801.0 tmax=284688001.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.94
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735793/ft1_filtered_4FGL_J1332.0-0509_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/735793/ltcube_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.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/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits
.....................!
real 16.18
user 15.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735793/ft1_filtered_4FGL_J1332.0-0509_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/735793/ltcube_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.fits outfile=/scratch/kocevski/735793/expmap_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.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/735793/ltcube_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.fits
.....................!
real 192.76
user 187.20
sys 4.93

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/735793/ft1_filtered_4FGL_J1332.0-0509_daily_bin174.fits scfile=/scratch/kocevski/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits outfile=/scratch/kocevski/735793/cmap_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735793/ft1_filtered_4FGL_J1332.0-0509_daily_bin174.fits scfile=/scratch/kocevski/735793/ft2_4FGL_J1332.0-0509_daily_bin174.fits outfile=/scratch/kocevski/735793/cmap_HighResolution_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.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.61
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.032       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1656       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.539       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    49.938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.304       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.191       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    25.690       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9284       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69306       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=   8584.959     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2315 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.032        35.061        .29993E-06    .21721E-05
   2  norm          .10000E-03    9.4045       -.33168E-05** at limit **
   3  norm          .71879        .23838       -.61015E-08    .12845E-03
   4  Prefactor     .10000E-03    23.584       -.45525E-05** at limit **
   5  norm          1.1628        1.7480        .11692E-07   -.15676E-03
   6  norm          .10000E-03    4.3960        .57126E-06** at limit **
   7  Prefactor     11.079        8.7567        .49578E-07   -.11330E-04
   8  Prefactor     .10000E-03    22.957        .41029E-05** at limit **
   9  Prefactor     4.1509        7.1168       -.32134E-07   -.70603E-04
  10  Prefactor     .10000E-03    4.2103       -.42796E-06** at limit **
  11  norm          16.540        2.5647       -.38106E-08   -.52653E-04
  12  norm          .10000E-03    .85107       -.20824E-08** at limit **
  13  norm          .10000E-03    2.6136       -.44906E-07** at limit **
  14  norm          49.938        30.885        .22108E-06   -.11163E-05
  15  Prefactor     .10000E-03    4.0820       -.17248E-06** at limit **
  16  Prefactor     28.303        20.626       -.71312E-06   -.58355E-05
  17  Prefactor     48.188        35.680       -.34817E-05    .18160E-05
  18  norm          .10000E-03    2.7277        .93335E-07** at limit **
  19  Prefactor     .10000E-03    4.6108        .77188E-07** at limit **
  20  norm          .10000E-03    1.8540        .23597E-07** at limit **
  21  Prefactor     .10000E-03    9.6788        .32717E-05** at limit **
  22  norm          25.691        17.042        .12111E-06   -.11153E-05
  23  Normalizat    1.9283        .22034       -.32804E-07   -.13682E-04
  24  Prefactor     .69310        .13528        .24010E-06   -.22275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.032
  norm       = 0.0001
  norm       = 0.718789
  Prefactor  = 0.0001
  norm       = 1.16277
  norm       = 0.0001
  Prefactor  = 11.0786
  Prefactor  = 0.0001
  Prefactor  = 4.15095
  Prefactor  = 0.0001
  norm       = 16.5396
  norm       = 0.0001
  norm       = 0.0001
  norm       = 49.938
  Prefactor  = 0.0001
  Prefactor  = 28.3033
  Prefactor  = 48.1876
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 25.6906
  Normalizat = 1.9283
  Prefactor  = 0.693098
 **********
 **   18 **HESSE 
 **********

 FCN=   8584.959     FROM HESSE     STATUS=OK           391 CALLS     2706 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.032        35.115        .64156E-04   -1.4458    
   2  norm          .10000E-03    9.4142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .71879        .23863        .24466E-04   -1.5538    
   4  Prefactor     .10000E-03    23.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1628        17.035        .21295E-02   -1.5492    
   6  norm          .10000E-03    4.4039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.079        8.7591        .60182E-03   -1.5042    
   8  Prefactor     .10000E-03    23.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1509        7.2562        .98917E-03   -1.5300    
  10  Prefactor     .10000E-03    4.2149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.540        2.5777        .55678E-04   -1.4894    
  12  norm          .10000E-03    .85504        .83452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6338        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          49.938        30.889        .56749E-04   -1.4293    
  15  Prefactor     .10000E-03    4.2453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.303        20.677        .75305E-04   -1.4643    
  17  Prefactor     48.188        35.689        .57763E-04   -1.4319    
  18  norm          .10000E-03    2.7496        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9292        .24613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.691        17.047        .79035E-04   -1.4694    
  23  Normalizat    1.9283        .26246        .28919E-03   -.66360    
  24  Prefactor     .69310        .15969        .28178E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2556e-10
Minuit parameter uncertainties:
  1  35.134
  2  1.1724e-07
  3  0.238627
  4  3.80675e-07
  5  8.90385
  6  6.88073e-07
  7  8.76014
  8  2.97606e-05
  9  7.25769
  10  8.02982e-07
  11  2.57771
  12  2.76386e-07
  13  1.75811e-06
  14  30.8992
  15  6.57328e-06
  16  20.6818
  17  35.7046
  18  6.23227e-07
  19  1.02598e-06
  20  5.60576e-07
  21  3.15755e-07
  22  17.0507
  23  0.262655
  24  0.159795
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.654e+01  2.578e+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:  6.931e-01  1.598e-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.928e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 112.29
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.00e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 1.50e-04 +/- 2.34e-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) = 8584.62814702
delta logL = 0.330743005705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8584.53680641
delta logL = 0.422083623842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.302       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5726       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71616       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=   8584.537     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.307        4.9105        .25597E-02   -.57176E-05
   2  alpha         2.5722        .33872        .12833        .46913E-04
   3  Normalizat    1.8781        .22086        .65968E-01   -.13894E-04
   4  Prefactor     .71605        .13666        .62780E-01    .74636E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3067
  alpha      = 2.57215
  Normalizat = 1.87815
  Prefactor  = 0.71605
 **********
 **   18 **HESSE 
 **********

 FCN=   8584.537     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.307        2.8115        .52493E-04   -1.4925    
   2  alpha         2.5722        .19705        .56137E-03    .28866E-01
   3  Normalizat    1.8781        .26137        .29175E-03   -.67641    
   4  Prefactor     .71605        .16089        .27771E-03   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65795e-13
Minuit parameter uncertainties:
  1  2.81148
  2  0.197255
  3  0.261571
  4  0.160995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735793': 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) = 8584.53680361
delta logL = 0.422086420036

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.531e+01  2.811e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.572e+00  1.973e-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:  7.161e-01  1.610e-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.878e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 112.66
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.57 +/- 0.20
Photon Flux (Free Index): 5.46e-07 +/- 9.59e-08
Energy Flux (Free Index): 1.44e-04 +/- 2.29e-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/735793/cmap_HighResolution_284428801_284688001_4FGL_J1332.0-0509_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-07', energy_flux2='1.44e-04', photon_flux_error='7.79e-08', dlogl='4.22e-01', energy_flux='1.50e-04', photon_flux2='5.46e-07', job_status='DONE', time_completed='2021-09-08 01:46:00.145729', photon_index_error2='0.20', photon_index2='2.57', ts='112.29', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='1.93', time_epoch_completed='1631090760.15', return_code='0', job_id='735793', GAL2='0.72', EG2='1.88', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='9.59e-08', ts2='112.66', photon_index='2.39' WHERE bin_id='174' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 735793: <4FGL_J1332.0-0509_daily_bin174> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin174 203.02 -5.1611 284428801 284688001 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 :                                   678.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            918 sec.

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

