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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin803
RA = 203.02, Dec = -5.1611
tmin = 447465601, tmax = 447724801
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='738910', job_status='RUN', time_executed='2021-09-08 01:44:45.617425', time_epoch_executed='1631090685.62' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='803'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738910/ft1_4FGL_J1332.0-0509_daily_bin803.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738910/ft1_4FGL_J1332.0-0509_daily_bin803.fits outfile=/scratch/kocevski/738910/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin803.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=447465601.0 tmax=447724801.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.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.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/738910/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin803.fits evtable="EVENTS" outfile="/scratch/kocevski/738910/ft1_filtered_4FGL_J1332.0-0509_daily_bin803.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738910/ft1_filtered_4FGL_J1332.0-0509_daily_bin803.fits" evtable="EVENTS" scfile=/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits sctable="SC_DATA" outfile=/scratch/kocevski/738910/ltcube_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.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/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits
.....................!
real 14.92
user 14.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738910/ft1_filtered_4FGL_J1332.0-0509_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits sctable="SC_DATA" expcube=/scratch/kocevski/738910/ltcube_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.fits outfile=/scratch/kocevski/738910/expmap_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.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/738910/ltcube_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.fits
.....................!
real 193.44
user 188.13
sys 4.79

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/738910/ft1_filtered_4FGL_J1332.0-0509_daily_bin803.fits scfile=/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits outfile=/scratch/kocevski/738910/cmap_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.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.72
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738910/ft1_filtered_4FGL_J1332.0-0509_daily_bin803.fits scfile=/scratch/kocevski/738910/ft2_4FGL_J1332.0-0509_daily_bin803.fits outfile=/scratch/kocevski/738910/cmap_HighResolution_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.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 1.11
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    25.516       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.363       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7542       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5881       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3888       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.800       1.0000         .10000E-03   10000.    
    11 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11973E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.887       1.0000         .10000E-03   10000.    
    22 'norm      '    21.290       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7553       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74388       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=   6504.929     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2751 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.348       -.95885E-06** at limit **
   2  norm          25.517        28.047       -.45395E-07    .58140E-05
   3  norm          1.2355        .33444        .25190E-08    .14096E-03
   4  Prefactor     39.385        67.891       -.70786E-05    .24945E-04
   5  norm          1.7477        17.416        .55569E-05    .53453E-04
   6  norm          1.5883        7.9715        .37514E-05   -.28321E-06
   7  Prefactor     1.3863        45.504        .52892E-05   -.37346E-04
   8  Prefactor     44.795        25.046       -.11913E-05    .81989E-04
   9  Prefactor     .10000E-03    10.808       -.27332E-06** at limit **
  10  Prefactor     43.831        24.531        .61663E-06   -.11981E-03
  11  norm          .10000E-03    .66774       -.19031E-06** at limit **
  12  norm          .10000E-03    5.3221        .17443E-05** at limit **
  13  norm          .10000E-03    3.1793       -.32536E-06** at limit **
  14  norm          .10000E-03    10.236       -.10471E-05** at limit **
  15  Prefactor     14.659        7.7867        .41122E-06    .82000E-04
  16  Prefactor     .10000E-03    10.696       -.29353E-06** at limit **
  17  Prefactor     .10000E-03    13.986        .23998E-05** at limit **
  18  norm          .10000E-03    3.1183       -.39138E-06** at limit **
  19  Prefactor     .10000E-03    17.866       -.12389E-05** at limit **
  20  norm          .10000E-03    1.6093       -.96097E-06** at limit **
  21  Prefactor     25.889        25.112       -.34867E-06    .29709E-04
  22  norm          21.289        20.040        .16704E-06    .72779E-05
  23  Normalizat    1.7550        .25703        .61868E-06    .86440E-04
  24  Prefactor     .74406        .15576        .79787E-06    .17091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.5166
  norm       = 1.23553
  Prefactor  = 39.3851
  norm       = 1.74766
  norm       = 1.5883
  Prefactor  = 1.38634
  Prefactor  = 44.795
  Prefactor  = 0.0001
  Prefactor  = 43.8313
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.8885
  norm       = 21.2886
  Normalizat = 1.75503
  Prefactor  = 0.744063
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.929     FROM HESSE     STATUS=OK           399 CALLS     3150 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.517        28.040        .79303E-04   -1.4697    
   3  norm          1.2355        .33436        .22969E-04   -1.5486    
   4  Prefactor     39.385        67.903        .63887E-04   -1.4452    
   5  norm          1.7477        18.332        .15824E-02   -1.5444    
   6  norm          1.5883        8.8024        .16839E-02   -1.5456    
   7  Prefactor     1.3863        43.911        .36886E-03   -1.5472    
   8  Prefactor     44.795        25.129        .59908E-04   -1.4368    
   9  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.831        25.957        .60576E-04   -1.4383    
  11  norm          .10000E-03    17.614        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.2101        .29480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1877        .14039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.659        7.7940        .10461E-03   -1.4942    
  16  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1310        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1623        .19435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.889        25.106        .78735E-04   -1.4690    
  22  norm          21.289        20.053        .86807E-04   -1.4785    
  23  Normalizat    1.7550        .29984        .28852E-03   -.70843    
  24  Prefactor     .74406        .18331        .26477E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11888e-09
Minuit parameter uncertainties:
  1  9.11887e-06
  2  28.0547
  3  0.334364
  4  68.0368
  5  11.3245
  6  7.47964
  7  15.6164
  8  25.135
  9  0.000114094
  10  25.964
  11  0.000365655
  12  0.000110648
  13  1.60121e-06
  14  1.0527e-05
  15  7.7945
  16  2.11181e-05
  17  4.99594e-05
  18  1.37234e-05
  19  3.05951e-05
  20  5.22789e-05
  21  25.1159
  22  20.0595
  23  0.300153
  24  0.183464
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.657e-04  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:  7.441e-01  1.835e-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.755e+00  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738910/likelihoodResults_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.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): 102
logL (Free Index) = 6504.92921016
delta logL = -0.000282362734652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.92892898
delta logL = -1.17906074593e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12776E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4786       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6504.906     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      272 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10038        1.2016        .51845E-05    .33775E-03
   2  alpha         3.9484        4.4706        .35297E-03   -.58838E-05
   3  Normalizat    1.7332        .30280        .90659E-05   -.77091E-04
   4  Prefactor     .75202        .18540       -.66677E-05   -.14662E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.10038
  alpha      = 3.9484
  Normalizat = 1.73323
  Prefactor  = 0.752025
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.906     FROM HESSE     STATUS=OK            41 CALLS      313 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10038        .59481        .15670E-01   -1.5771    
   2  alpha         3.9484        4.4727        .41154        .61794    
   3  Normalizat    1.7332        .26100        .65568E-01   -.71419    
   4  Prefactor     .75202        .15696        .42983E-01   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48853e-08
Minuit parameter uncertainties:
  1  0.488462
  2  4.36045
  3  0.261211
  4  0.157057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738910': 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) = 6504.90598907
delta logL = 0.0229387285517

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.004e-01  4.885e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.948e+00  4.360e+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:  7.520e-01  1.571e-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.733e+00  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.020 -5.161

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/738910/cmap_HighResolution_447465601_447724801_4FGL_J1332.0-0509_daily_bin803.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-08 01:56:18.348296', job_id='738910', GAL2='0.75', fit_tolerance='1e-08', EG2='1.73', EG='1.76', time_epoch_completed='1631091378.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.29e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='803' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 738910: <4FGL_J1332.0-0509_daily_bin803> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin803 203.02 -5.1611 447465601 447724801 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 :                                   690.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            935 sec.

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

