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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin478
RA = 203.02, Dec = -5.1611
tmin = 363225601, tmax = 363484801
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='737306', job_status='RUN', time_executed='2021-09-08 01:41:01.443497', time_epoch_executed='1631090461.44' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737306/ft1_4FGL_J1332.0-0509_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737306/ft2_4FGL_J1332.0-0509_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737306/ft1_4FGL_J1332.0-0509_daily_bin478.fits outfile=/scratch/kocevski/737306/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin478.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.03
user 6.78
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737306/ft1_filtered_4FGL_J1332.0-0509_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/737306/ft2_4FGL_J1332.0-0509_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/737306/ltcube_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.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/737306/ft2_4FGL_J1332.0-0509_daily_bin478.fits
.....................!
real 15.63
user 15.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737306/ft1_filtered_4FGL_J1332.0-0509_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/737306/ft2_4FGL_J1332.0-0509_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/737306/ltcube_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.fits outfile=/scratch/kocevski/737306/expmap_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.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/737306/ltcube_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.fits
.....................!
real 192.44
user 186.94
sys 5.07

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/737306/ft1_filtered_4FGL_J1332.0-0509_daily_bin478.fits scfile=/scratch/kocevski/737306/ft2_4FGL_J1332.0-0509_daily_bin478.fits outfile=/scratch/kocevski/737306/cmap_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    43.033       1.0000         .10000E-03   10000.    
     3 'norm      '    .31955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    65.294       1.0000         .10000E-03   10000.    
     6 'norm      '    7.5687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24572       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6630       1.0000         .10000E-03   10000.    
    12 'norm      '    .11328E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.612       1.0000         .10000E-03   10000.    
    14 'norm      '    24.220       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.887       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .44645       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4744       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3041.545     FROM MIGRAD    STATUS=CONVERGED    957 CALLS     3136 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.045        .18142E-02** at limit **
   2  norm          43.043        41.928        .61112E-04    .32035E-04
   3  norm          .31944        .30318        .28548E-04    .48385E-04
   4  Prefactor     .10000E-03    71.587        .18142E-02** at limit **
   5  norm          65.286        28.228        .49666E-04   -.44751E-04
   6  norm          7.5665        12.531        .14577E-03   -.92848E-04
   7  Prefactor     .10000E-03    5.9663        .13152E-02** at limit **
   8  Prefactor     5.1261        67.804        .17724E-03    .25016E-05
   9  Prefactor     3.9091        18.466        .20474E-03    .86875E-04
  10  Prefactor     .10000E-03    58.171        .84807E-01** at limit **
  11  norm          3.6618        2.8505        .38653E-03    .15186E-03
  12  norm          .10000E-03    8.4187        .30755E-03** at limit **
  13  norm          15.661        13.088        .10137E-03    .13733E-03
  14  norm          24.276        57.364        .81393E-04   -.34919E-05
  15  Prefactor     4.0585        5.9315        .15624E-03   -.30779E-04
  16  Prefactor     .10000E-03    13.990        .18142E-02** at limit **
  17  Prefactor     .10011E-03    431.31        .18142E-02** at limit **
  18  norm          .10000E-03    7.5071        .14713E-02** at limit **
  19  Prefactor     .10000E-03    8.4986        .15692E-02** at limit **
  20  norm          .10000E-03    1.8197        .72380E-03** at limit **
  21  Prefactor     62.859        59.050        .50601E-04    .35588E-04
  22  norm          .10000E-03    8.3928        .15606E-02** at limit **
  23  Normalizat    .44656        .42085        .49526E-03    .75590E-04
  24  Prefactor     1.4746        .27831        .19464E-03    .72805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 43.0428
  norm       = 0.319437
  Prefactor  = 0.0001
  norm       = 65.2857
  norm       = 7.56653
  Prefactor  = 0.0001
  Prefactor  = 5.12605
  Prefactor  = 3.90907
  Prefactor  = 0.0001
  norm       = 3.66179
  norm       = 0.0001
  norm       = 15.6612
  norm       = 24.2757
  Prefactor  = 4.0585
  Prefactor  = 0.0001
  Prefactor  = 0.000100107
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.8587
  norm       = 0.0001
  Normalizat = 0.446558
  Prefactor  = 1.47462
 **********
 **   18 **HESSE 
 **********

 FCN=   3041.545     FROM HESSE     STATUS=OK           383 CALLS     3519 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          43.043        41.928        .12222E-04   -1.4395    
   3  norm          .31944        .30317        .11419E-05   -1.5595    
   4  Prefactor     .10000E-03    71.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          65.286        28.227        .99332E-05   -1.4090    
   6  norm          7.5665        12.531        .58308E-05   -1.5158    
   7  Prefactor     .10000E-03    5.9664        .26305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1261        67.773        .70896E-05   -1.5255    
   9  Prefactor     3.9091        18.454        .81894E-05   -1.5313    
  10  Prefactor     .10000E-03    51.302        .91409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6618        2.8501        .15461E-04   -1.5325    
  12  norm          .10000E-03    8.4188        .61510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.661        13.070        .40547E-05   -1.4916    
  14  norm          24.276        57.347        .32557E-05   -1.4722    
  15  Prefactor     4.0585        5.9313        .62496E-05   -1.5305    
  16  Prefactor     .10000E-03    13.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    431.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.5082        .29426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4989        .31383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8198        .14476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.859        59.047        .10120E-04   -1.4121    
  22  norm          .10000E-03    8.3928        .31212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .44656        .42073        .19811E-04   -1.1496    
  24  Prefactor     1.4746        .27828        .38929E-04   -.78253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34244e-10
Minuit parameter uncertainties:
  1  2.90136e-05
  2  41.9567
  3  0.303173
  4  8.91204e-05
  5  28.2328
  6  12.5355
  7  7.08834e-07
  8  37.3292
  9  16.995
  10  0.00030384
  11  2.85017
  12  1.732e-06
  13  13.0721
  14  57.4777
  15  5.93213
  16  1.23892e-05
  17  0.0136708
  18  4.09555e-05
  19  6.65069e-06
  20  4.85207e-06
  21  59.1023
  22  7.37163e-06
  23  0.423761
  24  0.278566
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.662e+00  2.850e+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:  1.475e+00  2.786e-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:  4.466e-01  4.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 8.62e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.59e-05

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

Saving results to:
/scratch/kocevski/737306/likelihoodResults_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.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) = 3041.47023527
delta logL = 0.0749005688185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3041.46678088
delta logL = 0.0783549544908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3004       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6917       1.0000          .0000       5.0000    
     3 'Normalizat'    .42198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4856       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=   3041.467     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      265 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3021        73.039        .55713E-02    .11728E-03
   2  alpha         2.6922        2.6702        .31165        .16896E-04
   3  Normalizat    .42191        .17180        .11482        .67734E-04
   4  Prefactor     1.4856        .12474        .43897E-01    .11740E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30213
  alpha      = 2.6922
  Normalizat = 0.421906
  Prefactor  = 1.48558
 **********
 **   18 **HESSE 
 **********

 FCN=   3041.467     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3021        2.8671        .70276E-04   -1.5345    
   2  alpha         2.6922        .75494        .12986E-01    .76957E-01
   3  Normalizat    .42191        .40658        .50889E-03   -1.1618    
   4  Prefactor     1.4856        .27485        .19402E-03   -.77944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36241e-10
Minuit parameter uncertainties:
  1  2.86718
  2  0.766986
  3  0.409474
  4  0.275128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737306': 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) = 3041.46678005
delta logL = 0.0783557850687

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.302e+00  2.867e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.692e+00  7.670e-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.486e+00  2.751e-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:  4.219e-01  4.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.69 +/- 0.77
Photon Flux (Free Index): 1.32e-07 +/- 1.08e-07
Energy Flux (Free Index): 3.25e-05 +/- 2.46e-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/737306/cmap_HighResolution_363225601_363484801_4FGL_J1332.0-0509_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-05', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.25e-05', photon_flux_error='8.62e-08', dlogl='7.84e-02', energy_flux='3.33e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 01:49:44.912611', photon_index_error2='0.77', photon_index2='2.69', ts='2.65', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='2.96e-07', energy_flux_error2='2.46e-05', EG='0.45', time_epoch_completed='1631090984.91', return_code='0', job_id='737306', GAL2='1.49', EG2='0.42', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='1.08e-07', ts2='2.83', photon_index='2.39' WHERE bin_id='478' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 737306: <4FGL_J1332.0-0509_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin478 203.02 -5.1611 363225601 363484801 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            851 sec.

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

