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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin221
RA = 203.02, Dec = -5.1611
tmin = 296611201, tmax = 296870401
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='735863', job_status='RUN', time_executed='2021-09-08 01:35:25.324159', time_epoch_executed='1631090125.32' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735863/ft1_4FGL_J1332.0-0509_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735863/ft1_4FGL_J1332.0-0509_daily_bin221.fits outfile=/scratch/kocevski/735863/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin221.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.43
user 4.11
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735863/ft1_filtered_4FGL_J1332.0-0509_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/735863/ltcube_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.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/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits
.....................!
real 15.51
user 14.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735863/ft1_filtered_4FGL_J1332.0-0509_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/735863/ltcube_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.fits outfile=/scratch/kocevski/735863/expmap_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.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/735863/ltcube_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.fits
.....................!
real 193.15
user 187.29
sys 4.51

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/735863/ft1_filtered_4FGL_J1332.0-0509_daily_bin221.fits scfile=/scratch/kocevski/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits outfile=/scratch/kocevski/735863/cmap_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735863/ft1_filtered_4FGL_J1332.0-0509_daily_bin221.fits scfile=/scratch/kocevski/735863/ft2_4FGL_J1332.0-0509_daily_bin221.fits outfile=/scratch/kocevski/735863/cmap_HighResolution_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.633       1.0000         .10000E-03   10000.    
     2 'norm      '    .10399E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30094       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.294       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3987       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7059       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95252E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.004       1.0000         .10000E-03   10000.    
    11 'norm      '    9.3502       1.0000         .10000E-03   10000.    
    12 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6123       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.931       1.0000         .10000E-03   10000.    
    18 'norm      '    .47418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6193       1.0000         .10000E-03   10000.    
    20 'norm      '    .90315       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    25.230       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .74664       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0202       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=   6609.944     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2785 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.634        26.154        .19032E-07   -.65401E-05
   2  norm          .10000E-03    11.544       -.61932E-06** at limit **
   3  norm          .30092        .19046       -.64102E-07   -.28007E-04
   4  Prefactor     11.390        57.009        .86944E-05    .73544E-05
   5  norm          2.3945        11.397       -.68371E-05   -.94764E-04
   6  norm          2.7056        8.0609        .76786E-06    .21672E-04
   7  Prefactor     .10000E-03    5.8114       -.68821E-06** at limit **
   8  Prefactor     3.9267        18.313        .66724E-06    .16022E-04
   9  Prefactor     10.624        9.3962       -.29285E-07   -.36462E-04
  10  Prefactor     30.004        17.223       -.28447E-06   -.58164E-04
  11  norm          9.3505        2.2327        .47402E-07    .95471E-04
  12  norm          .10000E-03    1.7209       -.64300E-07** at limit **
  13  norm          .10000E-03    2.3064        .42668E-07** at limit **
  14  norm          13.075        17.313        .18929E-06    .65158E-05
  15  Prefactor     .10000E-03    1.4161        .16446E-06** at limit **
  16  Prefactor     3.6156        16.884       -.21513E-06   -.85863E-05
  17  Prefactor     11.932        27.462        .14836E-06   -.10271E-04
  18  norm          .47415        5.6155        .26689E-05   -.40632E-04
  19  Prefactor     2.6172        10.380        .23925E-06   -.13082E-04
  20  norm          .90372        1.9042        .79477E-06    .37033E-03
  21  Prefactor     .10000E-03    31.767        .38131E-06** at limit **
  22  norm          25.234        14.540       -.62181E-07   -.19193E-04
  23  Normalizat    .74651        .22568        .41867E-05   -.15645E-03
  24  Prefactor     1.0203        .14118       -.25667E-05    .13997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.634
  norm       = 0.0001
  norm       = 0.300925
  Prefactor  = 11.39
  norm       = 2.39454
  norm       = 2.70557
  Prefactor  = 0.000100001
  Prefactor  = 3.92667
  Prefactor  = 10.6242
  Prefactor  = 30.0038
  norm       = 9.3505
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.0748
  Prefactor  = 0.0001
  Prefactor  = 3.61563
  Prefactor  = 11.932
  norm       = 0.474151
  Prefactor  = 2.61723
  norm       = 0.903716
  Prefactor  = 0.0001
  norm       = 25.234
  Normalizat = 0.74651
  Prefactor  = 1.02027
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.944     FROM HESSE     STATUS=OK           411 CALLS     3196 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.634        26.168        .10848E-03   -1.4969    
   2  norm          .10000E-03    11.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .30092        .18823        .25914E-04   -1.5598    
   4  Prefactor     11.390        57.742        .11921E-03   -1.5033    
   5  norm          2.3945        11.474        .26439E-03   -1.5398    
   6  norm          2.7056        8.0342        .24763E-03   -1.5379    
   7  Prefactor     .10000E-03    16.537        .35595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9267        18.330        .10181E-02   -1.5312    
   9  Prefactor     10.624        9.3368        .12290E-03   -1.5056    
  10  Prefactor     30.004        17.014        .73145E-04   -1.4612    
  11  norm          9.3505        2.2379        .55359E-04   -1.5096    
  12  norm          .10000E-03    1.7266        .10341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3128        .12044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.075        17.312        .11074E-03   -1.4985    
  15  Prefactor     .10000E-03    1.4311        .94449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6156        16.754        .21259E-03   -1.5328    
  17  Prefactor     11.932        27.469        .11598E-03   -1.5017    
  18  norm          .47415        5.8028        .18569E-02   -1.5570    
  19  Prefactor     2.6172        10.350        .12600E-02   -1.5384    
  20  norm          .90372        1.7496        .15562E-02   -1.5518    
  21  Prefactor     .10000E-03    31.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.234        14.541        .79752E-04   -1.4703    
  23  Normalizat    .74651        .24626        .33228E-03   -1.0208    
  24  Prefactor     1.0203        .15727        .19385E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44103e-09
Minuit parameter uncertainties:
  1  26.1903
  2  1.47089e-05
  3  0.188229
  4  51.3694
  5  10.4866
  6  8.03742
  7  0.000246107
  8  16.976
  9  9.33811
  10  17.017
  11  2.2379
  12  2.24684e-06
  13  1.61228e-06
  14  17.3187
  15  4.32463e-07
  16  15.573
  17  27.4976
  18  3.31751
  19  10.3575
  20  1.74966
  21  3.16587e-05
  22  14.5428
  23  0.246626
  24  0.157342
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.351e+00  2.238e+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.020e+00  1.573e-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:  7.465e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.90
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.83e-07 +/- 6.77e-08
Energy Flux (Fixed Index): 8.51e-05 +/- 2.04e-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) = 6609.41415599
delta logL = 0.529617059598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6609.41392018
delta logL = 0.529852872353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1800       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6934       1.0000          .0000       5.0000    
     3 'Normalizat'    .68413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0511       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=   6609.414     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1786        24.970        .35045E-02    .30969E-03
   2  alpha         2.6937        3.7368        .15884        .53174E-04
   3  Normalizat    .68362        .22199        .78055E-01    .38971E-04
   4  Prefactor     1.0514        .14892        .39849E-01    .28411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.17861
  alpha      = 2.69365
  Normalizat = 0.68362
  Prefactor  = 1.05138
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.414     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1786        2.3789        .49645E-04   -1.5136    
   2  alpha         2.6937        .29844        .68898E-03    .77538E-01
   3  Normalizat    .68362        .24018        .34558E-03   -1.0454    
   4  Prefactor     1.0514        .15832        .19128E-03   -.91036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99719e-10
Minuit parameter uncertainties:
  1  2.37888
  2  0.299161
  3  0.240553
  4  0.158395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735863': 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) = 6609.4139177
delta logL = 0.529855354809

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  8.179e+00  2.379e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.694e+00  2.992e-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:  1.051e+00  1.584e-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:  6.836e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.24
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.69 +/- 0.30
Photon Flux (Free Index): 3.29e-07 +/- 8.53e-08
Energy Flux (Free Index): 8.04e-05 +/- 1.90e-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/735863/cmap_HighResolution_296611201_296870401_4FGL_J1332.0-0509_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-07', energy_flux2='8.04e-05', photon_flux_error='6.77e-08', dlogl='5.30e-01', energy_flux='8.51e-05', photon_flux2='3.29e-07', job_status='DONE', time_completed='2021-09-08 01:45:52.444297', photon_index_error2='0.30', photon_index2='2.69', ts='40.90', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.75', time_epoch_completed='1631090752.44', return_code='0', job_id='735863', GAL2='1.05', EG2='0.68', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='8.53e-08', ts2='42.24', photon_index='2.39' WHERE bin_id='221' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 735863: <4FGL_J1332.0-0509_daily_bin221> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin221> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:47 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31:34 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:31:34 2021
Terminated at Wed Sep  8 01:45:53 2021
Results reported at Wed Sep  8 01:45:53 2021

Your job looked like:

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

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

