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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin616
RA = 203.02, Dec = -5.1611
tmin = 398995201, tmax = 399254401
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='737506', job_status='RUN', time_executed='2021-09-08 01:40:33.966866', time_epoch_executed='1631090433.97' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737506/ft1_4FGL_J1332.0-0509_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737506/ft2_4FGL_J1332.0-0509_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737506/ft1_4FGL_J1332.0-0509_daily_bin616.fits outfile=/scratch/kocevski/737506/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin616.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=398995201.0 tmax=399254401.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.89
user 5.19
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737506/ft1_filtered_4FGL_J1332.0-0509_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/737506/ft2_4FGL_J1332.0-0509_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/737506/ltcube_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.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/737506/ft2_4FGL_J1332.0-0509_daily_bin616.fits
.....................!
real 15.73
user 15.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737506/ft1_filtered_4FGL_J1332.0-0509_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/737506/ft2_4FGL_J1332.0-0509_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/737506/ltcube_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.fits outfile=/scratch/kocevski/737506/expmap_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.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/737506/ltcube_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.fits
.....................!
real 192.60
user 185.87
sys 5.06

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/737506/ft1_filtered_4FGL_J1332.0-0509_daily_bin616.fits scfile=/scratch/kocevski/737506/ft2_4FGL_J1332.0-0509_daily_bin616.fits outfile=/scratch/kocevski/737506/cmap_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.633       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8780       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7897       1.0000         .10000E-03   10000.    
    13 'norm      '    .66265       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3268       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8416       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.180       1.0000         .10000E-03   10000.    
    22 'norm      '    21.063       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94966       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=   5743.054     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2758 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.896       -.25371E-06** at limit **
   2  norm          .10000E-03    15.255       -.59666E-05** at limit **
   3  norm          1.2802        .27537       -.54171E-08    .38437E-03
   4  Prefactor     .10000E-03    36.130       -.87153E-05** at limit **
   5  norm          11.633        12.126       -.11757E-06   -.11691E-04
   6  norm          .10000E-03    3.7802       -.35451E-06** at limit **
   7  Prefactor     .10000E-03    2.4921       -.25562E-06** at limit **
   8  Prefactor     5.5087        19.808       -.25230E-05   -.36009E-04
   9  Prefactor     7.8758        6.7512       -.16706E-06   -.11225E-03
  10  Prefactor     .10000E-03    23.136        .87095E-05** at limit **
  11  norm          1.8780        1.3729       -.66485E-07   -.36397E-03
  12  norm          2.7889        3.6440       -.78221E-06   -.94093E-03
  13  norm          .65389        4.6236       -.90849E-06   -.34065E-03
  14  norm          .10000E-03    9.6199       -.22710E-05** at limit **
  15  Prefactor     1.3275        4.8975        .38934E-05   -.94976E-03
  16  Prefactor     .10000E-03    22.135        .46713E-05** at limit **
  17  Prefactor     .10000E-03    11.738        .86610E-05** at limit **
  18  norm          .10000E-03    4.0395       -.36213E-06** at limit **
  19  Prefactor     .10000E-03    15.620       -.66825E-05** at limit **
  20  norm          1.8417        2.6028       -.37570E-06   -.55694E-03
  21  Prefactor     44.173        34.228       -.64745E-05    .37167E-04
  22  norm          21.063        17.825       -.92847E-07    .41072E-05
  23  Normalizat    1.0441        .22388        .41936E-06   -.15226E-04
  24  Prefactor     .94965        .14590        .29633E-06   -.42850E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.28017
  Prefactor  = 0.0001
  norm       = 11.6326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50872
  Prefactor  = 7.87582
  Prefactor  = 0.0001
  norm       = 1.87796
  norm       = 2.78888
  norm       = 0.653892
  norm       = 0.0001
  Prefactor  = 1.32749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84167
  Prefactor  = 44.1729
  norm       = 21.0626
  Normalizat = 1.04414
  Prefactor  = 0.949645
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.054     FROM HESSE     STATUS=OK           401 CALLS     3159 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2802        .27585        .17618E-04   -1.5482    
   4  Prefactor     .10000E-03    36.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.633        12.119        .11745E-03   -1.5026    
   6  norm          .10000E-03    3.7849        .14390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4966        .11682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5087        19.955        .17116E-03   -1.5239    
   9  Prefactor     7.8758        6.7567        .14288E-03   -1.5147    
  10  Prefactor     .10000E-03    23.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8780        1.3636        .72561E-04   -1.5434    
  12  norm          2.7889        3.5993        .13873E-03   -1.5374    
  13  norm          .65389        15.134        .26637E-02   -1.5546    
  14  norm          .10000E-03    9.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3275        4.6056        .28176E-03   -1.5478    
  16  Prefactor     .10000E-03    22.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0658        .14846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8417        2.5919        .13944E-03   -1.5437    
  21  Prefactor     44.173        34.255        .30158E-03   -1.4378    
  22  norm          21.063        17.831        .87274E-04   -1.4790    
  23  Normalizat    1.0441        .26669        .29522E-03   -.91566    
  24  Prefactor     .94965        .17431        .20948E-03   -.94427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97941e-09
Minuit parameter uncertainties:
  1  6.22711e-07
  2  1.55371e-06
  3  0.275849
  4  1.07262e-05
  5  12.1219
  6  1.44415e-07
  7  5.54557e-07
  8  19.9796
  9  6.75732
  10  0.000151432
  11  1.36357
  12  3.59955
  13  6.29298
  14  1.30995e-08
  15  4.60682
  16  4.74483e-06
  17  7.58447e-06
  18  5.70499e-05
  19  0.000119658
  20  2.59203
  21  34.2705
  22  17.8351
  23  0.267035
  24  0.174409
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.878e+00  1.364e+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:  9.496e-01  1.744e-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.044e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.06
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/737506/likelihoodResults_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.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) = 5743.00804066
delta logL = 0.045539590913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5743.00346872
delta logL = 0.0501115278612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7593       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6083       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95428       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=   5743.003     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7597        31.300        .78983E-02    .40534E-03
   2  alpha         2.6084        3.1868        .41159        .22745E-04
   3  Normalizat    1.0335        .89316E-01    .67034E-01    .15576E-04
   4  Prefactor     .95421        .60148E-01    .45693E-01    .57802E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75967
  alpha      = 2.60841
  Normalizat = 1.03351
  Prefactor  = 0.954212
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.003     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7597        1.3823        .68167E-04   -1.5443    
   2  alpha         2.6084        .69052        .16148E-01    .43379E-01
   3  Normalizat    1.0335        .25481        .29655E-03   -.91916    
   4  Prefactor     .95421        .17212        .20904E-03   -.94272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07742e-12
Minuit parameter uncertainties:
  1  1.38237
  2  0.699629
  3  0.25511
  4  0.172222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737506': 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) = 5743.00346855
delta logL = 0.0501116983069

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.760e+00  1.382e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.608e+00  6.996e-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:  9.542e-01  1.722e-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.034e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.61 +/- 0.70
Photon Flux (Free Index): 6.50e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.20e-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/737506/cmap_HighResolution_398995201_399254401_4FGL_J1332.0-0509_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.68e-05', photon_flux_error='4.12e-08', dlogl='5.01e-02', energy_flux='1.71e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-08 01:51:37.949766', photon_index_error2='0.70', photon_index2='2.61', ts='3.06', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.20e-05', EG='1.04', time_epoch_completed='1631091097.95', return_code='0', job_id='737506', GAL2='0.95', EG2='1.03', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.07e-08', ts2='3.15', photon_index='2.39' WHERE bin_id='616' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 737506: <4FGL_J1332.0-0509_daily_bin616> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:48 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:38: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:38:07 2021
Terminated at Wed Sep  8 01:51:38 2021
Results reported at Wed Sep  8 01:51:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin616 203.02 -5.1611 398995201 399254401 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 :                                   658.30 sec.
    Max Memory :                                 1180 MB
    Average Memory :                             311.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            950 sec.

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

