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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin814
RA = 203.02, Dec = -5.1611
tmin = 450316801, tmax = 450576001
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='738927', job_status='RUN', time_executed='2021-09-08 01:45:54.767051', time_epoch_executed='1631090754.77' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738927/ft1_4FGL_J1332.0-0509_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738927/ft1_4FGL_J1332.0-0509_daily_bin814.fits outfile=/scratch/kocevski/738927/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin814.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=450316801.0 tmax=450576001.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.98
user 3.71
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.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/738927/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.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/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/738927/ltcube_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.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/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits
.....................!
real 13.03
user 12.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/738927/ltcube_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.fits outfile=/scratch/kocevski/738927/expmap_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.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/738927/ltcube_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.fits
.....................!
real 191.45
user 185.88
sys 4.88

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/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits outfile=/scratch/kocevski/738927/cmap_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits outfile=/scratch/kocevski/738927/cmap_HighResolution_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/738927/ft2_4FGL_J1332.0-0509_daily_bin814.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738927/Model_4FGL_J1332.0-0509_daily_bin814.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/738927/ft1_filtered_4FGL_J1332.0-0509_daily_bin814.fits.....................!
real 56.44
user 55.05
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.070       1.0000         .10000E-03   10000.    
     2 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .99071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6573       1.0000         .10000E-03   10000.    
     5 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .41948E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .75229       1.0000         .10000E-03   10000.    
    12 'norm      '    11.685       1.0000         .10000E-03   10000.    
    13 'norm      '    13.393       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14991E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    119.20       1.0000         .10000E-03   10000.    
    18 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.970       1.0000         .10000E-03   10000.    
    22 'norm      '    13.749       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4291       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71845       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=   6898.718     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2387 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.077        38.528       -.61320E-06    .30362E-04
   2  norm          .10000E-03    24.606       -.29709E-06** at limit **
   3  norm          .99065        .26794        .20593E-06    .81510E-04
   4  Prefactor     9.5428        55.103       -.87908E-04    .15101E-05
   5  norm          .10000E-03    3.5275        .25602E-06** at limit **
   6  norm          .10350E-03    6.7913        .89326E-06** at limit **
   7  Prefactor     .10000E-03    4.9850       -.35693E-08** at limit **
   8  Prefactor     .10000E-03    36.756        .21318E-05** at limit **
   9  Prefactor     .10000E-03    2.6749       -.14909E-07** at limit **
  10  Prefactor     .10000E-03    15.894       -.26870E-07** at limit **
  11  norm          .75207        1.2763       -.35348E-06   -.15331E-02
  12  norm          11.688        4.8808       -.18175E-06   -.59647E-04
  13  norm          13.393        7.8411        .10231E-06   -.13579E-04
  14  norm          .10000E-03    9.6372        .54205E-07** at limit **
  15  Prefactor     8.2716        5.7759       -.55613E-06   -.15510E-03
  16  Prefactor     .10000E-03    54.019       -.39237E-05** at limit **
  17  Prefactor     119.20        52.430       -.10836E-05    .50244E-05
  18  norm          .10000E-03    5.1855       -.87987E-08** at limit **
  19  Prefactor     .10000E-03    6.0679       -.10417E-06** at limit **
  20  norm          .10000E-03    2.0092       -.12856E-06** at limit **
  21  Prefactor     20.953        28.270        .43036E-05    .77866E-05
  22  norm          13.748        13.225       -.25535E-06    .18861E-04
  23  Normalizat    1.4292        .21354        .19672E-05    .33649E-04
  24  Prefactor     .71838        .13543        .91561E-06    .78981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.0771
  norm       = 0.0001
  norm       = 0.990645
  Prefactor  = 9.54278
  norm       = 0.0001
  norm       = 0.000103495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.752073
  norm       = 11.6881
  norm       = 13.3934
  norm       = 0.0001
  Prefactor  = 8.27164
  Prefactor  = 0.0001
  Prefactor  = 119.2
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.9529
  norm       = 13.7481
  Normalizat = 1.42925
  Prefactor  = 0.718378
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.718     FROM HESSE     STATUS=OK           405 CALLS     2792 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.077        38.602        .56119E-04   -1.4277    
   2  norm          .10000E-03    24.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .99065        .26848        .20875E-04   -1.5509    
   4  Prefactor     9.5428        55.160        .12895E-03   -1.5090    
   5  norm          .10000E-03    3.5440        .15236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10350E-03    9.1548        .72439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0124        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6827        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .75207        1.1265        .11515E-02   -1.5535    
  12  norm          11.688        4.8761        .10631E-03   -1.5024    
  13  norm          13.393        7.8409        .10945E-03   -1.4976    
  14  norm          .10000E-03    9.6410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.2716        5.7686        .13939E-03   -1.5133    
  16  Prefactor     .10000E-03    55.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     119.20        52.477        .18429E-03   -1.3520    
  18  norm          .10000E-03    5.2600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0707        .22967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.953        28.274        .87467E-04   -1.4792    
  22  norm          13.748        13.228        .10802E-03   -1.4966    
  23  Normalizat    1.4292        .24960        .27910E-03   -.79786    
  24  Prefactor     .71838        .15907        .24324E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39919e-10
Minuit parameter uncertainties:
  1  38.6209
  2  7.10318e-05
  3  0.268485
  4  45.9502
  5  4.93458e-05
  6  0.0113148
  7  1.03761e-05
  8  7.83569e-05
  9  1.38373e-06
  10  1.22309e-05
  11  1.12648
  12  4.87622
  13  7.84155
  14  3.40268e-06
  15  5.76902
  16  0.000264282
  17  52.4978
  18  7.39255e-07
  19  2.47288e-05
  20  1.39765e-05
  21  28.2916
  22  13.2307
  23  0.249812
  24  0.159172
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  7.521e-01  1.126e+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:  7.184e-01  1.592e-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.429e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738927/likelihoodResults_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.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) = 6896.9020805
delta logL = 1.81546380328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6896.89604
delta logL = 1.82150430219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32628       1.0000         .10000E-03   10000.    
     2 'alpha     '    .72601       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70731       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=   6896.896     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32433        .37575        .10021E-01   -.19278E-03
   2  alpha         .72405        .50474        .41812       -.38535E-04
   3  Normalizat    1.4536        .20708        .62617E-01    .57946E-04
   4  Prefactor     .70729        .13361        .42498E-01    .88200E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.32433
  alpha      = 0.724051
  Normalizat = 1.45357
  Prefactor  = 0.707295
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.896     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32433        .52807        .43488E-04   -1.5594    
   2  alpha         .72405        .66308        .19189E-01   -.79004    
   3  Normalizat    1.4536        .24291        .27694E-03   -.79092    
   4  Prefactor     .70729        .15679        .24467E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67343e-12
Minuit parameter uncertainties:
  1  0.528078
  2  0.67987
  3  0.243102
  4  0.15689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738927': 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) = 6896.89603422
delta logL = 1.82151008088

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.243e-01  5.281e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  7.241e-01  6.799e-01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.073e-01  1.569e-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.454e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.29
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 0.72 +/- 0.68
Photon Flux (Free Index): 7.58e-09 +/- 8.54e-09
Energy Flux (Free Index): 3.51e-05 +/- 4.54e-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/738927/cmap_HighResolution_450316801_450576001_4FGL_J1332.0-0509_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', comment='SUCCESS', energy_flux2='3.51e-05', dlogl='1.82e+00', photon_flux2='7.58e-09', job_status='DONE', time_completed='2021-09-08 01:57:05.919630', photon_index_error2='0.68', photon_index2='0.72', ts='0.65', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='4.54e-05', EG='1.43', time_epoch_completed='1631091425.92', return_code='0', job_id='738927', GAL2='0.71', EG2='1.45', return_code2='0', photon_flux_error2='8.54e-09', ts2='4.29', photon_index='2.39' WHERE bin_id='814' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 738927: <4FGL_J1332.0-0509_daily_bin814> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin814 203.02 -5.1611 450316801 450576001 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            980 sec.

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

