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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin284
RA = 203.02, Dec = -5.1611
tmin = 312940801, tmax = 313200001
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='735958', job_status='RUN', time_executed='2021-09-08 01:34:44.788714', time_epoch_executed='1631090084.79' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735958

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735958/ft1_4FGL_J1332.0-0509_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735958/ft1_4FGL_J1332.0-0509_daily_bin284.fits outfile=/scratch/kocevski/735958/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin284.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=312940801.0 tmax=313200001.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.47
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735958/ft1_filtered_4FGL_J1332.0-0509_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/735958/ltcube_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.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/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits
.....................!
real 13.57
user 13.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735958/ft1_filtered_4FGL_J1332.0-0509_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/735958/ltcube_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.fits outfile=/scratch/kocevski/735958/expmap_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.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/735958/ltcube_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.fits
.....................!
real 193.16
user 186.31
sys 5.25

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/735958/ft1_filtered_4FGL_J1332.0-0509_daily_bin284.fits scfile=/scratch/kocevski/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits outfile=/scratch/kocevski/735958/cmap_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735958/ft1_filtered_4FGL_J1332.0-0509_daily_bin284.fits scfile=/scratch/kocevski/735958/ft2_4FGL_J1332.0-0509_daily_bin284.fits outfile=/scratch/kocevski/735958/cmap_HighResolution_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    62.274       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    72.169       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9718       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.933       1.0000         .10000E-03   10000.    
    14 'norm      '    36.529       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12679E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7009       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9213       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.097       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4936       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82137       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=   6291.215     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2703 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.186        .19321E-06** at limit **
   2  norm          62.275        36.201        .12850E-06    .20465E-04
   3  norm          1.7674        .37633       -.30294E-08   -.19613E-03
   4  Prefactor     .10000E-03    38.593        .85166E-06** at limit **
   5  norm          .10000E-03    4.1316        .28625E-08** at limit **
   6  norm          .10000E-03    6.4649       -.78057E-07** at limit **
   7  Prefactor     .10000E-03    15.850       -.31919E-06** at limit **
   8  Prefactor     .10000E-03    7.3376        .21031E-06** at limit **
   9  Prefactor     7.6083        10.620        .25806E-05   -.28221E-03
  10  Prefactor     72.154        28.437       -.99470E-06   -.31145E-03
  11  norm          1.9723        2.0125        .36510E-07   -.13758E-03
  12  norm          .10000E-03    2.8416       -.25038E-06** at limit **
  13  norm          12.930        9.8731        .34970E-06    .36512E-04
  14  norm          36.524        35.659       -.62199E-06   -.85239E-04
  15  Prefactor     .10000E-03    3.2919        .16621E-07** at limit **
  16  Prefactor     .10000E-03    7.7990       -.13444E-06** at limit **
  17  Prefactor     4.6869        85.023       -.50440E-05   -.70635E-04
  18  norm          .10000E-03    2.4990        .44043E-08** at limit **
  19  Prefactor     .10000E-03    5.3409        .40124E-07** at limit **
  20  norm          7.9215        3.5740        .27439E-07   -.88064E-05
  21  Prefactor     .10000E-03    36.134       -.73388E-06** at limit **
  22  norm          11.096        11.033       -.62906E-06    .10041E-03
  23  Normalizat    1.4933        .25248       -.95975E-06    .35836E-04
  24  Prefactor     .82151        .15661        .55556E-06   -.41613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 62.2748
  norm       = 1.76739
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60833
  Prefactor  = 72.1542
  norm       = 1.97233
  norm       = 0.0001
  norm       = 12.9304
  norm       = 36.5236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68691
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.92153
  Prefactor  = 0.0001
  norm       = 11.0965
  Normalizat = 1.49334
  Prefactor  = 0.82151
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.215     FROM HESSE     STATUS=OK           393 CALLS     3096 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          62.275        36.204        .50849E-04   -1.4128    
   3  norm          1.7674        .37801        .21284E-04   -1.5442    
   4  Prefactor     .10000E-03    38.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1364        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.4866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6083        10.854        .72692E-03   -1.5156    
  10  Prefactor     72.154        29.028        .47257E-04   -1.4007    
  11  norm          1.9723        2.0077        .10536E-03   -1.5427    
  12  norm          .10000E-03    2.8453        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.930        9.9036        .11138E-03   -1.4989    
  14  norm          36.524        35.875        .66310E-04   -1.4499    
  15  Prefactor     .10000E-03    8.9564        .27733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6869        92.381        .18560E-03   -1.5275    
  18  norm          .10000E-03    2.5036        .12243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3537        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9215        3.5757        .96817E-04   -1.5145    
  21  Prefactor     .10000E-03    36.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.096        11.057        .60134E-03   -1.5042    
  23  Normalizat    1.4933        .29484        .30637E-03   -.77966    
  24  Prefactor     .82151        .18180        .25422E-03   -.98940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15454e-10
Minuit parameter uncertainties:
  1  5.95891e-05
  2  36.2171
  3  0.378014
  4  0.000248178
  5  1.20249e-06
  6  1.29943e-05
  7  8.84236e-06
  8  2.46524e-05
  9  10.8571
  10  29.0341
  11  2.00778
  12  1.01671e-05
  13  9.90481
  14  35.8967
  15  1.03083e-06
  16  2.03419e-05
  17  41.6901
  18  1.75553e-07
  19  2.09388e-06
  20  3.57576
  21  0.000230572
  22  11.059
  23  0.295182
  24  0.181935
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.972e+00  2.008e+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.215e-01  1.819e-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.493e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 6.07e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/735958/likelihoodResults_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.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) = 6288.46504883
delta logL = 2.75040751934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.46053485
delta logL = 2.75492150758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0659       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2107       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91637       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=   6288.461     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0640        6.4301        .74419E-02    .62347E-04
   2  alpha         4.2122        4.5925        .30994        .11722E-04
   3  Normalizat    1.2560        .96326E-01    .74210E-01   -.25574E-04
   4  Prefactor     .91636        .62395E-01    .45213E-01   -.13716E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06397
  alpha      = 4.21219
  Normalizat = 1.25597
  Prefactor  = 0.916363
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.461     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0640        1.4256        .33252E-04   -1.5502    
   2  alpha         4.2122        .98939        .14291E-01    .75443    
   3  Normalizat    1.2560        .29904        .32841E-03   -.84890    
   4  Prefactor     .91636        .18418        .24196E-03   -.95572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03503e-11
Minuit parameter uncertainties:
  1  1.42568
  2  1.04591
  3  0.29945
  4  0.18431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735958': 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) = 6288.46053308
delta logL = 2.75492327475

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.064e+00  1.426e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.212e+00  1.046e+00  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:  9.164e-01  1.843e-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.256e+00  2.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.67
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.21 +/- 1.05
Photon Flux (Free Index): 2.59e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.92e-05 +/- 1.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/735958/cmap_HighResolution_312940801_313200001_4FGL_J1332.0-0509_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-05', comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='3.92e-05', photon_flux_error='6.07e-08', dlogl='2.75e+00', energy_flux='1.79e-05', photon_flux2='2.59e-07', job_status='DONE', time_completed='2021-09-08 01:45:42.566256', photon_index_error2='1.05', photon_index2='4.21', ts='1.35', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.79e-05', EG='1.49', time_epoch_completed='1631090742.57', return_code='0', job_id='735958', GAL2='0.92', EG2='1.26', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.20e-07', ts2='7.67', photon_index='2.39' WHERE bin_id='284' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 735958: <4FGL_J1332.0-0509_daily_bin284> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin284 203.02 -5.1611 312940801 313200001 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            889 sec.

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

