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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin831
RA = 203.02, Dec = -5.1611
tmin = 454723201, tmax = 454982401
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='738954', job_status='RUN', time_executed='2021-09-08 01:45:24.335749', time_epoch_executed='1631090724.34' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='831'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738954/ft1_4FGL_J1332.0-0509_daily_bin831.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738954/ft1_4FGL_J1332.0-0509_daily_bin831.fits outfile=/scratch/kocevski/738954/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin831.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=454723201.0 tmax=454982401.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.51
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738954/ft1_filtered_4FGL_J1332.0-0509_daily_bin831.fits" evtable="EVENTS" scfile=/scratch/kocevski/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits sctable="SC_DATA" outfile=/scratch/kocevski/738954/ltcube_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.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/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits
.....................!
real 14.40
user 13.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738954/ft1_filtered_4FGL_J1332.0-0509_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits sctable="SC_DATA" expcube=/scratch/kocevski/738954/ltcube_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.fits outfile=/scratch/kocevski/738954/expmap_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.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/738954/ltcube_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.fits
.....................!
real 191.13
user 184.97
sys 5.72

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/738954/ft1_filtered_4FGL_J1332.0-0509_daily_bin831.fits scfile=/scratch/kocevski/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits outfile=/scratch/kocevski/738954/cmap_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.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.59
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738954/ft1_filtered_4FGL_J1332.0-0509_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/738954/ft2_4FGL_J1332.0-0509_daily_bin831.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738954/Model_4FGL_J1332.0-0509_daily_bin831.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/738954/ft1_filtered_4FGL_J1332.0-0509_daily_bin831.fits.....................!
real 55.73
user 53.87
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1070       1.0000         .10000E-03   10000.    
     4 'Prefactor '    119.35       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2751       1.0000         .10000E-03   10000.    
     6 'norm      '    .49327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.951       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.347       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1959       1.0000         .10000E-03   10000.    
    12 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.622       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9793       1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.5705       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5721       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .55086       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=   6789.963     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2687 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.163       -.68365E-06** at limit **
   2  norm          .10000E-03    9.2258        .27555E-06** at limit **
   3  norm          1.1070        .26189        .34721E-08    .14221E-03
   4  Prefactor     119.35        62.129       -.14784E-05    .90566E-04
   5  norm          1.2740        5.9537       -.28326E-05   -.77618E-03
   6  norm          .47578        6.2071       -.74976E-06   -.25606E-03
   7  Prefactor     .10000E-03    3.1173        .66308E-07** at limit **
   8  Prefactor     .10000E-03    34.158        .78445E-05** at limit **
   9  Prefactor     11.953        9.2279       -.46598E-06    .72713E-04
  10  Prefactor     17.343        15.173       -.50735E-06    .19362E-04
  11  norm          1.1961        1.1470       -.87664E-08   -.52737E-04
  12  norm          .10000E-03    2.0219       -.12755E-07** at limit **
  13  norm          .10000E-03    3.8472        .12929E-06** at limit **
  14  norm          8.6710        16.614       -.69529E-06    .11864E-04
  15  Prefactor     14.010        5.7626        .21544E-06   -.21200E-03
  16  Prefactor     .10000E-03    35.922       -.82460E-05** at limit **
  17  Prefactor     15.618        34.430       -.64083E-05    .11207E-03
  18  norm          .10000E-03    3.3002       -.23938E-07** at limit **
  19  Prefactor     4.9766        9.4165        .16489E-07   -.72112E-04
  20  norm          .10000E-03    1.6510       -.15459E-06** at limit **
  21  Prefactor     .10000E-03    8.0475       -.43693E-07** at limit **
  22  norm          9.5707        9.9022       -.10016E-07    .29660E-04
  23  Normalizat    1.5717        .20680        .49210E-06    .22157E-04
  24  Prefactor     .55104        .12903        .82410E-06   -.13875E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.10699
  Prefactor  = 119.345
  norm       = 1.27398
  norm       = 0.475778
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 11.9526
  Prefactor  = 17.3432
  norm       = 1.19608
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.67098
  Prefactor  = 14.0102
  Prefactor  = 0.000100003
  Prefactor  = 15.6183
  norm       = 0.0001
  Prefactor  = 4.97655
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.57071
  Normalizat = 1.57175
  Prefactor  = 0.551041
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.963     FROM HESSE     STATUS=OK           399 CALLS     3086 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.2288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1070        .26239        .19501E-04   -1.5498    
   4  Prefactor     119.35        61.476        .36835E-04   -1.3519    
   5  norm          1.2740        7.8579        .39357E-03   -1.5482    
   6  norm          .47578        23.750        .39857E-02   -1.5570    
   7  Prefactor     .10000E-03    3.1236        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.953        9.1986        .11588E-03   -1.5016    
  10  Prefactor     17.343        15.027        .96164E-04   -1.4875    
  11  norm          1.1961        1.1489        .41574E-04   -1.5489    
  12  norm          .10000E-03    2.0354        .22654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9006        .15756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6710        16.609        .13612E-03   -1.5119    
  15  Prefactor     14.010        5.7461        .10702E-03   -1.4959    
  16  Prefactor     .10000E-03    34.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.618        33.884        .10133E-03   -1.4917    
  18  norm          .10000E-03    3.3119        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9766        9.4126        .18022E-03   -1.5262    
  20  norm          .10000E-03    1.7182        .20663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.5707        9.9045        .12954E-03   -1.5089    
  23  Normalizat    1.5717        .24648        .25593E-03   -.75782    
  24  Prefactor     .55104        .15221        .25713E-03   -1.0969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56332e-09
Minuit parameter uncertainties:
  1  3.31445e-05
  2  1.35796e-05
  3  0.262394
  4  61.5085
  5  6.32894
  6  6.72511
  7  9.94522e-07
  8  0.000755688
  9  9.19965
  10  15.0299
  11  1.14894
  12  5.75846e-06
  13  4.25988e-06
  14  16.618
  15  5.74631
  16  0.000654062
  17  33.9254
  18  7.37045e-06
  19  9.4154
  20  2.74674e-06
  21  5.70275e-08
  22  9.9062
  23  0.246667
  24  0.152325
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.196e+00  1.149e+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:  5.510e-01  1.523e-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.572e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/738954/likelihoodResults_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.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) = 6789.76503644
delta logL = 0.197686343407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.71505995
delta logL = 0.247662826962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73583       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4938       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54021       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=   6789.715     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73559        .80168        .12199E-01   -.12837E-03
   2  alpha         1.4934        .70690        .46448       -.37684E-04
   3  Normalizat    1.6023        .20080        .57431E-01    .44232E-06
   4  Prefactor     .54020        .12662        .58660E-01    .30241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.735593
  alpha      = 1.49343
  Normalizat = 1.60226
  Prefactor  = 0.540202
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.715     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73559        1.1268        .71686E-04   -1.5536    
   2  alpha         1.4934        1.0973        .24142E-01   -.41438    
   3  Normalizat    1.6023        .23608        .25394E-03   -.74944    
   4  Prefactor     .54020        .14855        .25950E-03   -1.1017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99346e-12
Minuit parameter uncertainties:
  1  1.12681
  2  1.14439
  3  0.236246
  4  0.148653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738954': 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) = 6789.7150599
delta logL = 0.247662879051

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.356e-01  1.127e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.493e+00  1.144e+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:  5.402e-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.602e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.49 +/- 1.14
Photon Flux (Free Index): 1.30e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/738954/cmap_HighResolution_454723201_454982401_4FGL_J1332.0-0509_daily_bin831.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='1.22e-05', photon_flux_error='3.47e-08', dlogl='2.48e-01', energy_flux='1.09e-05', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-08 01:56:58.468857', photon_index_error2='1.14', photon_index2='1.49', ts='2.41', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.53e-05', EG='1.57', time_epoch_completed='1631091418.47', return_code='0', job_id='738954', GAL2='0.54', EG2='1.60', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.23e-08', ts2='2.90', photon_index='2.39' WHERE bin_id='831' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 738954: <4FGL_J1332.0-0509_daily_bin831> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin831> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:48 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:13 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:42:13 2021
Terminated at Wed Sep  8 01:56:59 2021
Results reported at Wed Sep  8 01:56:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin831 203.02 -5.1611 454723201 454982401 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 :                                   692.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            971 sec.

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

