/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 228 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin91
RA = 203.02, Dec = -5.1611
tmin = 262915201, tmax = 263174401
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='734707', job_status='RUN', time_executed='2021-09-08 01:29:59.488459', time_epoch_executed='1631089799.49' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734707

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734707/ft1_4FGL_J1332.0-0509_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734707/ft1_4FGL_J1332.0-0509_daily_bin91.fits outfile=/scratch/kocevski/734707/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin91.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.31
user 1.12
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734707/ft1_filtered_4FGL_J1332.0-0509_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/734707/ltcube_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.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/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits
.....................!
real 13.32
user 12.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734707/ft1_filtered_4FGL_J1332.0-0509_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/734707/ltcube_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.fits outfile=/scratch/kocevski/734707/expmap_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.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/734707/ltcube_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.fits
.....................!
real 193.30
user 187.79
sys 5.07

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/734707/ft1_filtered_4FGL_J1332.0-0509_daily_bin91.fits scfile=/scratch/kocevski/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits outfile=/scratch/kocevski/734707/cmap_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734707/ft1_filtered_4FGL_J1332.0-0509_daily_bin91.fits scfile=/scratch/kocevski/734707/ft2_4FGL_J1332.0-0509_daily_bin91.fits outfile=/scratch/kocevski/734707/cmap_HighResolution_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.833       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .90423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    164.05       1.0000         .10000E-03   10000.    
     5 'norm      '    9.9119       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6030       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8397       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6910       1.0000         .10000E-03   10000.    
    13 'norm      '    .13515E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.806       1.0000         .10000E-03   10000.    
    18 'norm      '    18.276       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1719       1.0000         .10000E-03   10000.    
    20 'norm      '    .41084E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3826       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82900       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=   5875.760     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     3297 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.837        25.357       -.92490E-06   -.28593E-04
   2  norm          .10000E-03    7.7466        .14245E-06** at limit **
   3  norm          .90438        .29590        .74299E-08    .10612E-04
   4  Prefactor     164.05        100.08       -.66575E-06   -.20495E-04
   5  norm          9.9139        14.585        .11234E-06    .51142E-05
   6  norm          .10000E-03    3.4226        .32785E-07** at limit **
   7  Prefactor     4.1685        6.3088        .23075E-06    .48061E-03
   8  Prefactor     6.5149        18.241       -.16715E-05   -.61388E-04
   9  Prefactor     1.6043        4.7217        .22226E-06    .98516E-04
  10  Prefactor     .10000E-03    35.998        .11245E-05** at limit **
  11  norm          4.8406        1.8949        .25581E-10   -.98748E-05
  12  norm          6.6904        3.7318       -.73383E-07   -.29014E-04
  13  norm          .10000E-03    5.5313       -.88754E-06** at limit **
  14  norm          18.998        30.029       -.13167E-05   -.53941E-04
  15  Prefactor     .10001E-03    8.8954        .26936E-05** at limit **
  16  Prefactor     .10000E-03    12.233        .25193E-05** at limit **
  17  Prefactor     20.786        41.000        .47958E-05    .10333E-03
  18  norm          18.266        11.520        .13201E-06   -.36507E-03
  19  Prefactor     4.1766        15.298       -.84243E-06   -.27678E-04
  20  norm          .75283E-01    1.4320       -.38733E-06    .25753E-03
  21  Prefactor     .10000E-03    20.376       -.12160E-05** at limit **
  22  norm          .10000E-03    4.6622        .13823E-07** at limit **
  23  Normalizat    1.3822        .24492        .15756E-06   -.51490E-04
  24  Prefactor     .82897        .15576        .21072E-06    .11102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8365
  norm       = 0.0001
  norm       = 0.904378
  Prefactor  = 164.052
  norm       = 9.91386
  norm       = 0.0001
  Prefactor  = 4.16849
  Prefactor  = 6.51488
  Prefactor  = 1.60435
  Prefactor  = 0.0001
  norm       = 4.84061
  norm       = 6.69038
  norm       = 0.0001
  norm       = 18.998
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 20.7863
  norm       = 18.266
  Prefactor  = 4.17656
  norm       = 0.0752832
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.38224
  Prefactor  = 0.828965
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.760     FROM HESSE     STATUS=OK           407 CALLS     3704 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.837        25.387        .12173E-03   -1.5049    
   2  norm          .10000E-03    7.7483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .90438        .29649        .22022E-04   -1.5518    
   4  Prefactor     164.05        100.15        .31490E-04   -1.3139    
   5  norm          9.9139        14.557        .12728E-03   -1.5078    
   6  norm          .10000E-03    3.4240        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1685        6.5941        .98720E-03   -1.5300    
   8  Prefactor     6.5149        18.304        .15735E-03   -1.5197    
   9  Prefactor     1.6043        4.6964        .27647E-03   -1.5455    
  10  Prefactor     .10000E-03    36.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8406        1.8969        .62977E-04   -1.5268    
  12  norm          6.6904        3.5497        .10105E-03   -1.5191    
  13  norm          .10000E-03    19.069        .32304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.998        30.110        .91904E-04   -1.4836    
  15  Prefactor     .10001E-03    10.910        .31052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.786        41.675        .87810E-04   -1.4796    
  18  norm          18.266        10.378        .93687E-04   -1.4853    
  19  Prefactor     4.1766        15.314        .19732E-03   -1.5299    
  20  norm          .75283E-01    18.081        .16914E-02   -1.5653    
  21  Prefactor     .10000E-03    20.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.6624        .16165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3822        .28899        .29118E-03   -.81144    
  24  Prefactor     .82897        .18305        .23774E-03   -.98669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90528e-09
Minuit parameter uncertainties:
  1  25.4122
  2  8.03577e-06
  3  0.296492
  4  100.252
  5  14.5619
  6  7.91544e-07
  7  6.59527
  8  18.3197
  9  4.69748
  10  0.000105792
  11  1.8969
  12  3.54977
  13  0.000101326
  14  30.1343
  15  0.000532223
  16  0.000178737
  17  41.733
  18  10.3788
  19  15.3286
  20  2.33258
  21  0.000101035
  22  5.2056e-07
  23  0.289331
  24  0.183185
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.841e+00  1.897e+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.290e-01  1.832e-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.382e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.71
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.46e-07 +/- 5.74e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 1.73e-05

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) = 5875.66340944
delta logL = 0.0962484961128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5875.64870015
delta logL = 0.110957786844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1501       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1959       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81813       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=   5875.649     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1519        4.4805        .44288E-02    .10689E-03
   2  alpha         2.1956        .82444        .26970        .11686E-04
   3  Normalizat    1.4036        .23856        .65415E-01    .12720E-04
   4  Prefactor     .81820        .15583        .43953E-01    .13594E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.15193
  alpha      = 2.19564
  Normalizat = 1.40364
  Prefactor  = 0.8182
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.649     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1519        2.0809        .65765E-04   -1.5254    
   2  alpha         2.1956        .41181        .11220E-01   -.12205    
   3  Normalizat    1.4036        .27636        .28936E-03   -.80523    
   4  Prefactor     .81820        .17896        .23908E-03   -.99061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64901e-13
Minuit parameter uncertainties:
  1  2.0809
  2  0.413728
  3  0.276658
  4  0.179084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734707': 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) = 5875.64869948
delta logL = 0.110958452349

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.152e+00  2.081e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.196e+00  4.137e-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:  8.182e-01  1.791e-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.404e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.83
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.20 +/- 0.41
Photon Flux (Free Index): 1.32e-07 +/- 6.06e-08
Energy Flux (Free Index): 4.73e-05 +/- 2.03e-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/734707/cmap_HighResolution_262915201_263174401_4FGL_J1332.0-0509_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-07', energy_flux2='4.73e-05', photon_flux_error='5.74e-08', dlogl='1.11e-01', energy_flux='4.40e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 01:40:16.549321', photon_index_error2='0.41', photon_index2='2.20', ts='14.71', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.38', time_epoch_completed='1631090416.55', return_code='0', job_id='734707', GAL2='0.82', EG2='1.40', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.06e-08', ts2='14.83', photon_index='2.39' WHERE bin_id='91' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 734707: <4FGL_J1332.0-0509_daily_bin91> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin91> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:45 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:26: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:26:00 2021
Terminated at Wed Sep  8 01:40:17 2021
Results reported at Wed Sep  8 01:40:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin91 203.02 -5.1611 262915201 263174401 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 :                                   615.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            872 sec.

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

