/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 192 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin306
RA = 203.02, Dec = -5.1611
tmin = 318643201, tmax = 318902401
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='735987', job_status='RUN', time_executed='2021-09-08 01:35:23.896365', time_epoch_executed='1631090123.9' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735987/ft1_4FGL_J1332.0-0509_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735987/ft1_4FGL_J1332.0-0509_daily_bin306.fits outfile=/scratch/kocevski/735987/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin306.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=318643201.0 tmax=318902401.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.08
user 2.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.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/735987/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.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.48
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/735987/ltcube_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.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/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits
.....................!
real 13.26
user 12.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/735987/ltcube_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.fits outfile=/scratch/kocevski/735987/expmap_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.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/735987/ltcube_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.fits
.....................!
real 156.69
user 152.17
sys 3.53

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/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits outfile=/scratch/kocevski/735987/cmap_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.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.50
user 0.34
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits outfile=/scratch/kocevski/735987/cmap_HighResolution_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.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.59
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/735987/ft2_4FGL_J1332.0-0509_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735987/Model_4FGL_J1332.0-0509_daily_bin306.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/735987/ft1_filtered_4FGL_J1332.0-0509_daily_bin306.fits.....................!
real 39.07
user 37.65
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.521       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .48269E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.129       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0070       1.0000         .10000E-03   10000.    
    12 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.737       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23490       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.191       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1583       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0730       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=   5766.537     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2323 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    106.68       -.16191E-04** at limit **
   2  norm          12.505        23.286       -.34871E-06   -.10468E-04
   3  norm          1.4461        .33928        .80490E-07    .22860E-02
   4  Prefactor     .10000E-03    60.918        .43374E-05** at limit **
   5  norm          .10000E-03    3.3109        .57451E-06** at limit **
   6  norm          .10057E-03    7.8515       -.34963E-05** at limit **
   7  Prefactor     .10000E-03    3.9395        .98953E-07** at limit **
   8  Prefactor     .10000E-03    7.6849        .45887E-06** at limit **
   9  Prefactor     8.3121        8.0547       -.27995E-06    .24267E-04
  10  Prefactor     27.139        17.785       -.48595E-06   -.90966E-04
  11  norm          2.0072        1.5316        .16437E-06    .56890E-04
  12  norm          .10000E-03    3.3709        .73816E-06** at limit **
  13  norm          11.739        8.3890       -.32338E-06   -.13584E-03
  14  norm          .10000E-03    15.163        .49995E-06** at limit **
  15  Prefactor     .10000E-03    1.7697       -.23789E-06** at limit **
  16  Prefactor     .10000E-03    11.819       -.50060E-06** at limit **
  17  Prefactor     .10000E-03    20.210       -.43086E-05** at limit **
  18  norm          .10000E-03    1.9413        .36535E-06** at limit **
  19  Prefactor     .28618        8.1736       -.22002E-05    .33004E-03
  20  norm          4.2876        2.8233       -.76564E-07   -.18453E-03
  21  Prefactor     .10001E-03    25.964        .12941E-04** at limit **
  22  norm          20.190        17.915       -.45309E-07    .66686E-05
  23  Normalizat    1.1581        .24440       -.11530E-05    .20384E-03
  24  Prefactor     1.0732        .16267        .98842E-06    .22074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 12.5052
  norm       = 1.44606
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.00010057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.31209
  Prefactor  = 27.1393
  norm       = 2.0072
  norm       = 0.0001
  norm       = 11.7394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.286184
  norm       = 4.2876
  Prefactor  = 0.000100007
  norm       = 20.1896
  Normalizat = 1.15807
  Prefactor  = 1.07316
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.537     FROM HESSE     STATUS=OK           393 CALLS     2716 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    108.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.505        23.287        .11320E-03   -1.5001    
   3  norm          1.4461        .34020        .20561E-04   -1.5467    
   4  Prefactor     .10000E-03    61.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3165        .13495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10057E-03    37.043        .36699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9455        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3121        8.0522        .13908E-03   -1.5131    
  10  Prefactor     27.139        17.757        .76914E-04   -1.4666    
  11  norm          2.0072        1.5236        .78432E-04   -1.5425    
  12  norm          .10000E-03    3.4363        .27149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.739        8.3942        .11693E-03   -1.5023    
  14  norm          .10000E-03    15.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7751        .98638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9440        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28618        81.571        .40496E-02   -1.5601    
  20  norm          4.2876        2.8219        .10006E-03   -1.5294    
  21  Prefactor     .10001E-03    26.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.190        17.922        .89137E-04   -1.4809    
  23  Normalizat    1.1581        .28305        .32017E-03   -.87909    
  24  Prefactor     1.0732        .18913        .22205E-03   -.90329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96078e-08
Minuit parameter uncertainties:
  1  0.00219945
  2  23.3038
  3  0.340205
  4  0.000392843
  5  1.31654e-05
  6  0.00919833
  7  3.70903e-06
  8  1.50637e-05
  9  8.05322
  10  17.7606
  11  1.52367
  12  2.50509e-05
  13  8.39507
  14  2.30156e-05
  15  3.32798e-06
  16  1.21889e-05
  17  0.000243582
  18  6.53533e-06
  19  9.67484
  20  2.82195
  21  0.000831726
  22  17.9266
  23  0.283426
  24  0.189244
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.073e+00  1.892e-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.158e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.07e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/735987/likelihoodResults_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.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) = 5766.53461059
delta logL = 0.0027193726246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5766.53422054
delta logL = 0.00310941625048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9772       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4726       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0756       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=   5766.534     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9755        42.401        .73702E-02    .30637E-03
   2  alpha         2.4706        3.1743        .41155        .13549E-04
   3  Normalizat    1.1531        .13652        .72487E-01   -.24282E-04
   4  Prefactor     1.0755        .74424E-01    .38599E-01   -.52954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9755
  alpha      = 2.47061
  Normalizat = 1.15309
  Prefactor  = 1.0755
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.534     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9755        1.5939        .77161E-04   -1.5427    
   2  alpha         2.4706        .97408        .21721E-01   -.11757E-01
   3  Normalizat    1.1531        .28625        .32077E-03   -.88065    
   4  Prefactor     1.0755        .18947        .22184E-03   -.90254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31734e-12
Minuit parameter uncertainties:
  1  1.5939
  2  1.00059
  3  0.286639
  4  0.189592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735987': 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) = 5766.5342169
delta logL = 0.00311306329422

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.976e+00  1.594e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.471e+00  1.001e+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:  1.075e+00  1.896e-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.153e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.47 +/- 1.00
Photon Flux (Free Index): 6.40e-08 +/- 6.27e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/735987/cmap_HighResolution_318643201_318902401_4FGL_J1332.0-0509_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', comment='SUCCESS', photon_flux='6.07e-08', energy_flux2='1.82e-05', photon_flux_error='4.61e-08', dlogl='3.11e-03', energy_flux='1.83e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-08 01:43:45.415227', photon_index_error2='1.00', photon_index2='2.47', ts='3.40', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.38e-05', EG='1.16', time_epoch_completed='1631090625.42', return_code='0', job_id='735987', GAL2='1.08', EG2='1.15', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='6.27e-08', ts2='3.40', photon_index='2.39' WHERE bin_id='306' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:43:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 735987: <4FGL_J1332.0-0509_daily_bin306> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin306> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:56 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:00 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:32:00 2021
Terminated at Wed Sep  8 01:43:46 2021
Results reported at Wed Sep  8 01:43:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin306 203.02 -5.1611 318643201 318902401 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            770 sec.

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

