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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin806
RA = 203.02, Dec = -5.1611
tmin = 448243201, tmax = 448502401
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='738915', job_status='RUN', time_executed='2021-09-08 01:44:25.902049', time_epoch_executed='1631090665.9' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738915/ft1_4FGL_J1332.0-0509_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738915/ft1_4FGL_J1332.0-0509_daily_bin806.fits outfile=/scratch/kocevski/738915/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin806.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=448243201.0 tmax=448502401.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 5.30
user 5.00
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.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/738915/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.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 1.27
user 0.36
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/738915/ltcube_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.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/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits
.....................!
real 15.37
user 14.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/738915/ltcube_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.fits outfile=/scratch/kocevski/738915/expmap_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.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/738915/ltcube_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.fits
.....................!
real 192.71
user 187.22
sys 4.81

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/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.fits scfile=/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits outfile=/scratch/kocevski/738915/cmap_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.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.57
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/738915/ft2_4FGL_J1332.0-0509_daily_bin806.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738915/Model_4FGL_J1332.0-0509_daily_bin806.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/738915/ft1_filtered_4FGL_J1332.0-0509_daily_bin806.fits.....................!
real 53.35
user 51.80
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7039       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.099       1.0000         .10000E-03   10000.    
     5 'norm      '    8.1118       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19517E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    10.750       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9533       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6048       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.861       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7445       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.378       1.0000         .10000E-03   10000.    
    22 'norm      '    5.5247       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89786       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=   6394.863     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2715 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.081        .92806E-06** at limit **
   2  norm          3.6821        99.880       -.21389E-04   -.12135E-03
   3  norm          1.1855        .33416        .46694E-07    .19390E-03
   4  Prefactor     36.085        61.690       -.75538E-05   -.17321E-03
   5  norm          8.1166        11.897        .22698E-06   -.79965E-04
   6  norm          .10000E-03    5.1485        .26900E-06** at limit **
   7  Prefactor     8.4175        10.318       -.16802E-07   -.24872E-04
   8  Prefactor     4.8104        29.388       -.14757E-06   -.15378E-04
   9  Prefactor     9.2412        8.5481       -.15130E-05   -.43714E-03
  10  Prefactor     .10000E-03    13.694       -.17495E-06** at limit **
  11  norm          .10032E-03    .63913        .58928E-07** at limit **
  12  norm          10.749        5.0304       -.61490E-06    .59218E-04
  13  norm          4.9518        6.7613        .30879E-05   -.16583E-02
  14  norm          .10000E-03    9.6365        .73401E-08** at limit **
  15  Prefactor     .10000E-03    5.3800       -.21301E-06** at limit **
  16  Prefactor     .10000E-03    49.909       -.90006E-06** at limit **
  17  Prefactor     .10000E-03    51.761        .86418E-06** at limit **
  18  norm          6.6044        7.0507       -.69236E-06   -.19144E-03
  19  Prefactor     24.849        15.318        .26656E-06    .54020E-04
  20  norm          2.7437        2.2371       -.10379E-06   -.18206E-03
  21  Prefactor     46.367        32.965       -.19865E-05   -.18018E-03
  22  norm          5.5214        12.862       -.45855E-06   -.47998E-04
  23  Normalizat    1.1887        .23533        .20268E-07   -.64643E-05
  24  Prefactor     .89795        .14667        .81832E-06   -.22274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.68206
  norm       = 1.18554
  Prefactor  = 36.085
  norm       = 8.11658
  norm       = 0.0001
  Prefactor  = 8.41748
  Prefactor  = 4.81042
  Prefactor  = 9.24122
  Prefactor  = 0.0001
  norm       = 0.00010032
  norm       = 10.7493
  norm       = 4.95182
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.60437
  Prefactor  = 24.8494
  norm       = 2.74371
  Prefactor  = 46.3674
  norm       = 5.52143
  Normalizat = 1.18872
  Prefactor  = 0.89795
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.863     FROM HESSE     STATUS=OK           409 CALLS     3124 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6821        107.09        .20984E-03   -1.5324    
   3  norm          1.1855        .33471        .23311E-04   -1.5490    
   4  Prefactor     36.085        62.493        .66702E-04   -1.4506    
   5  norm          8.1166        11.876        .14077E-03   -1.5138    
   6  norm          .10000E-03    5.1574        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4175        10.320        .13815E-03   -1.5128    
   8  Prefactor     4.8104        29.749        .18345E-03   -1.5269    
   9  Prefactor     9.2412        8.6264        .13186E-03   -1.5100    
  10  Prefactor     .10000E-03    13.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10032E-03    2.2715        .21529E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.749        5.2995        .10608E-03   -1.5052    
  13  norm          4.9518        8.7878        .90352E-03   -1.5263    
  14  norm          .10000E-03    9.6372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4751        .36051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6044        7.0355        .15615E-03   -1.5194    
  19  Prefactor     24.849        15.330        .80339E-04   -1.4711    
  20  norm          2.7437        2.2345        .10314E-03   -1.5377    
  21  Prefactor     46.367        33.180        .58876E-04   -1.4345    
  22  norm          5.5214        12.877        .17093E-03   -1.5238    
  23  Normalizat    1.1887        .27879        .31111E-03   -.86952    
  24  Prefactor     .89795        .17363        .22567E-03   -.96213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73474e-09
Minuit parameter uncertainties:
  1  0.000165712
  2  39.7933
  3  0.334706
  4  62.6068
  5  11.8799
  6  1.88723e-05
  7  10.322
  8  23.9427
  9  8.62757
  10  2.37696e-05
  11  0.0017047
  12  5.29973
  13  8.79008
  14  1.49131e-06
  15  8.69543e-07
  16  0.000249935
  17  8.81479e-05
  18  7.03637
  19  15.3319
  20  2.23453
  21  33.1929
  22  12.8834
  23  0.279137
  24  0.173741
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.980e-01  1.737e-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.189e+00  2.791e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738915/likelihoodResults_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.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) = 6394.86284106
delta logL = -5.34558330401e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6394.85560033
delta logL = 0.00718728006359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13926       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8982       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89915       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=   6394.856     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13970        16.132        .34446E-01    .13684E-02
   2  alpha         2.8976        2.9873        .41831        .32822E-04
   3  Normalizat    1.1822        .31235E-01    .70482E-01    .81262E-05
   4  Prefactor     .89924        .19984E-01    .44994E-01   -.79444E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.139697
  alpha      = 2.89757
  Normalizat = 1.1822
  Prefactor  = 0.899237
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.856     FROM HESSE     STATUS=OK            35 CALLS      294 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13970        6.2829        .12177E-02   -1.5633    
   2  alpha         2.8976        3.9171        .88857E-01    .15970    
   3  Normalizat    1.1822        .26845        .31187E-03   -.87155    
   4  Prefactor     .89924        .16843        .22553E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19507e-10
Minuit parameter uncertainties:
  1  1.87325
  2  4.82853
  3  0.26876
  4  0.168528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738915': 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) = 6394.85559987
delta logL = 0.00718773933841

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.397e-01  1.873e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.898e+00  4.829e+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:  8.992e-01  1.685e-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.182e+00  2.688e-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/738915/cmap_HighResolution_448243201_448502401_4FGL_J1332.0-0509_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-08 01:55:51.180506', job_id='738915', GAL2='0.90', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1631091351.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.19e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='806' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 738915: <4FGL_J1332.0-0509_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin806 203.02 -5.1611 448243201 448502401 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 :                                   681.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            906 sec.

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

