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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin973
RA = 203.02, Dec = -5.1611
tmin = 491529601, tmax = 491788801
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='740272', job_status='RUN', time_executed='2021-09-08 01:48:31.655456', time_epoch_executed='1631090911.66' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740272/ft1_4FGL_J1332.0-0509_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740272/ft1_4FGL_J1332.0-0509_daily_bin973.fits outfile=/scratch/kocevski/740272/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin973.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=491529601.0 tmax=491788801.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.55
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740272/ft1_filtered_4FGL_J1332.0-0509_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/740272/ltcube_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.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/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits
.....................!
real 15.40
user 14.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740272/ft1_filtered_4FGL_J1332.0-0509_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/740272/ltcube_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.fits outfile=/scratch/kocevski/740272/expmap_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.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/740272/ltcube_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.fits
.....................!
real 192.51
user 187.24
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/740272/ft1_filtered_4FGL_J1332.0-0509_daily_bin973.fits scfile=/scratch/kocevski/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits outfile=/scratch/kocevski/740272/cmap_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.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.58
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740272/ft1_filtered_4FGL_J1332.0-0509_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/740272/ft2_4FGL_J1332.0-0509_daily_bin973.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740272/Model_4FGL_J1332.0-0509_daily_bin973.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/740272/ft1_filtered_4FGL_J1332.0-0509_daily_bin973.fits.....................!
real 59.42
user 57.97
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.387       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2004       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.2311       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.968       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4112       1.0000         .10000E-03   10000.    
    12 'norm      '    21.586       1.0000         .10000E-03   10000.    
    13 'norm      '    13.115       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4922       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.015       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3823       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.6517       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5261       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81037       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=   7365.780     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2672 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.658        .18098E-06** at limit **
   2  norm          15.386        18.023        .83171E-08   -.67629E-05
   3  norm          1.2003        .28797       -.73387E-08   -.10619E-03
   4  Prefactor     .10000E-03    25.895        .63659E-07** at limit **
   5  norm          9.2291        11.827        .19376E-05   -.53239E-04
   6  norm          .10000E-03    4.2776        .13690E-08** at limit **
   7  Prefactor     3.0074        6.7231        .39743E-06    .88158E-06
   8  Prefactor     1.8538        31.794        .91150E-06   -.22285E-04
   9  Prefactor     .10000E-03    11.192       -.10981E-07** at limit **
  10  Prefactor     27.946        27.311       -.46635E-06   -.12847E-03
  11  norm          1.4110        1.4714        .63339E-07   -.54827E-04
  12  norm          21.590        7.6605        .14118E-06    .17907E-04
  13  norm          13.113        8.2345       -.44590E-07    .44593E-05
  14  norm          .10000E-03    28.874       -.15660E-06** at limit **
  15  Prefactor     4.4916        5.3631        .34048E-06    .42910E-04
  16  Prefactor     58.673        29.883       -.59212E-07   -.57630E-04
  17  Prefactor     20.015        33.272        .13580E-06   -.17182E-05
  18  norm          4.3828        4.8508       -.67890E-08    .52821E-05
  19  Prefactor     .10000E-03    3.3937       -.29197E-07** at limit **
  20  norm          .10000E-03    .88859        .55158E-07** at limit **
  21  Prefactor     .10000E-03    19.972       -.13052E-06** at limit **
  22  norm          8.6517        8.6768       -.11990E-05    .54017E-04
  23  Normalizat    1.5266        .24044        .44720E-06   -.48627E-04
  24  Prefactor     .81010        .15147       -.99886E-06    .20628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.3862
  norm       = 1.20034
  Prefactor  = 0.0001
  norm       = 9.22914
  norm       = 0.0001
  Prefactor  = 3.00739
  Prefactor  = 1.85377
  Prefactor  = 0.0001
  Prefactor  = 27.9458
  norm       = 1.41096
  norm       = 21.5905
  norm       = 13.1132
  norm       = 0.0001
  Prefactor  = 4.49165
  Prefactor  = 58.673
  Prefactor  = 20.0151
  norm       = 4.38277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.65167
  Normalizat = 1.52658
  Prefactor  = 0.810098
 **********
 **   18 **HESSE 
 **********

 FCN=   7365.780     FROM HESSE     STATUS=OK           403 CALLS     3075 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.386        18.023        .10210E-03   -1.4923    
   3  norm          1.2003        .28897        .21472E-04   -1.5489    
   4  Prefactor     .10000E-03    25.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.2291        11.854        .65955E-03   -1.5100    
   6  norm          .10000E-03    4.2808        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0074        6.6993        .23401E-03   -1.5361    
   8  Prefactor     1.8538        31.978        .30488E-03   -1.5436    
   9  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.946        27.408        .75754E-04   -1.4650    
  11  norm          1.4110        1.4509        .10098E-03   -1.5470    
  12  norm          21.590        7.6853        .86211E-04   -1.4778    
  13  norm          13.113        8.2324        .11060E-03   -1.4984    
  14  norm          .10000E-03    28.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4916        5.3466        .18996E-03   -1.5284    
  16  Prefactor     58.673        29.946        .52373E-04   -1.4174    
  17  Prefactor     20.015        33.293        .89527E-04   -1.4813    
  18  norm          4.3828        4.8384        .18770E-03   -1.5289    
  19  Prefactor     .10000E-03    3.3958        .15440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .89780        .79001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.6517        8.6887        .68139E-03   -1.5120    
  23  Normalizat    1.5266        .28309        .30668E-03   -.77034    
  24  Prefactor     .81010        .17625        .25969E-03   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85954e-11
Minuit parameter uncertainties:
  1  6.59717e-05
  2  18.0298
  3  0.288974
  4  4.76937e-05
  5  11.8575
  6  1.59133e-06
  7  6.70096
  8  15.4079
  9  3.10811e-06
  10  27.4201
  11  1.45091
  12  7.6856
  13  8.23313
  14  6.01716e-05
  15  5.34717
  16  29.9535
  17  33.3236
  18  4.83884
  19  1.13938e-06
  20  5.86537e-07
  21  5.00936e-05
  22  8.68993
  23  0.283383
  24  0.176373
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.411e+00  1.451e+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:  8.101e-01  1.764e-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.527e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/740272/likelihoodResults_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.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) = 7365.75370496
delta logL = 0.0262604955542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7365.75204624
delta logL = 0.0279192175822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3609       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1364       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80487       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=   7365.752     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      193 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3608        1.5016        .93590E-02    .84365E-03
   2  alpha         2.1364        1.0280        .41715E-01    .40511E-04
   3  Normalizat    1.5395        .23321        .69083E-01    .28569E-05
   4  Prefactor     .80488        .14816        .43781E-01    .19179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36077
  alpha      = 2.13642
  Normalizat = 1.53955
  Prefactor  = 0.804883
 **********
 **   18 **HESSE 
 **********

 FCN=   7365.752     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3608        1.5172        .10200E-03   -1.5475    
   2  alpha         2.1364        1.0584        .16686E-02   -.14595    
   3  Normalizat    1.5395        .27575        .30561E-03   -.76673    
   4  Prefactor     .80488        .17502        .26043E-03   -.99549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0634e-10
Minuit parameter uncertainties:
  1  1.51725
  2  1.09371
  3  0.276017
  4  0.175145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740272': 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) = 7365.75204623
delta logL = 0.0279192260796

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.361e+00  1.517e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.136e+00  1.094e+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.049e-01  1.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:  1.540e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.14 +/- 1.09
Photon Flux (Free Index): 3.33e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740272/cmap_HighResolution_491529601_491788801_4FGL_J1332.0-0509_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='1.27e-05', photon_flux_error='4.39e-08', dlogl='2.79e-02', energy_flux='1.28e-05', photon_flux2='3.33e-08', job_status='DONE', time_completed='2021-09-08 02:00:48.755064', photon_index_error2='1.09', photon_index2='2.14', ts='1.37', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.33e-05', EG='1.53', time_epoch_completed='1631091648.76', return_code='0', job_id='740272', GAL2='0.80', EG2='1.54', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.32e-08', ts2='1.41', photon_index='2.39' WHERE bin_id='973' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 740272: <4FGL_J1332.0-0509_daily_bin973> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin973> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:41 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:46 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:45:46 2021
Terminated at Wed Sep  8 02:00:49 2021
Results reported at Wed Sep  8 02:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin973 203.02 -5.1611 491529601 491788801 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 :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            908 sec.

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

