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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin124
RA = 203.02, Dec = -5.1611
tmin = 271468801, tmax = 271728001
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='734755', job_status='RUN', time_executed='2021-09-08 01:29:45.153964', time_epoch_executed='1631089785.15' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734755

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734755/ft1_4FGL_J1332.0-0509_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734755/ft1_4FGL_J1332.0-0509_daily_bin124.fits outfile=/scratch/kocevski/734755/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin124.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=271468801.0 tmax=271728001.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.39
user 1.19
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/734755/ltcube_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.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/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits
.....................!
real 15.82
user 15.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/734755/ltcube_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.fits outfile=/scratch/kocevski/734755/expmap_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.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/734755/ltcube_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.fits
.....................!
real 157.07
user 152.51
sys 4.18

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/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits scfile=/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits outfile=/scratch/kocevski/734755/cmap_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.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.59
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits scfile=/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits outfile=/scratch/kocevski/734755/cmap_HighResolution_271468801_271728001_4FGL_J1332.0-0509_daily_bin124.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.68
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/734755/ft2_4FGL_J1332.0-0509_daily_bin124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734755/Model_4FGL_J1332.0-0509_daily_bin124.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/734755/ft1_filtered_4FGL_J1332.0-0509_daily_bin124.fits.....................!
real 55.63
user 54.20
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.755       1.0000         .10000E-03   10000.    
     2 'norm      '    13.122       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.348       1.0000         .10000E-03   10000.    
     5 'norm      '    .15582E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .27876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .75999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9242       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9940       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5556       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2739       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5556       1.0000         .10000E-03   10000.    
    18 'norm      '    20.826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2533       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8900.581     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2448 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.770        3.3891       -.37857E-05    .33501E-02
   2  norm          13.137        4.3043       -.84943E-05    .25354E-02
   3  norm          3.4494        .38294        .52389E-07   -.11063E-02
   4  Prefactor     72.938        54.827       -.13022E-04    .14234E-02
   5  norm          .35928        43.495       -.96795E-05   -.15918E-04
   6  norm          .18030        118.37       -.30310E-04    .14812E-03
   7  Prefactor     .18270        35.533       -.48429E-04   -.10895E-02
   8  Prefactor     .72032        48.993        .87747E-04    .11520E-02
   9  Prefactor     18.714        9.7255       -.53152E-06   -.71400E-03
  10  Prefactor     .10000E-03    8.7791       -.91843E-06** at limit **
  11  norm          2.9235        1.3192        .41286E-06   -.36646E-03
  12  norm          1.9956        2.5047        .13848E-05   -.16566E-03
  13  norm          2.5544        5.4682        .31795E-05    .20495E-03
  14  norm          2.2769        3.6595        .20720E-04    .10004E-02
  15  Prefactor     .10000E-03    8.7601       -.23916E-05** at limit **
  16  Prefactor     10.297        13.077        .33187E-04   -.35476E-02
  17  Prefactor     8.4280        6.0415       -.16377E-06   -.11328E-02
  18  norm          20.835        8.5153        .14637E-05   -.56965E-03
  19  Prefactor     .10000E-03    7.1507       -.14112E-06** at limit **
  20  norm          3.0269        1.9111        .66333E-06   -.12879E-03
  21  Prefactor     .10000E-03    15.910       -.47798E-05** at limit **
  22  norm          .10000E-03    3.4372       -.85838E-06** at limit **
  23  Normalizat    1.2521        .25995       -.18117E-04   -.52524E-04
  24  Prefactor     .94858        .16617        .98527E-05   -.97971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7699
  norm       = 13.1367
  norm       = 3.44941
  Prefactor  = 72.9377
  norm       = 0.359279
  norm       = 0.180301
  Prefactor  = 0.182702
  Prefactor  = 0.720317
  Prefactor  = 18.7143
  Prefactor  = 0.0001
  norm       = 2.92349
  norm       = 1.99559
  norm       = 2.55442
  norm       = 2.27688
  Prefactor  = 0.0001
  Prefactor  = 10.297
  Prefactor  = 8.42805
  norm       = 20.8347
  Prefactor  = 0.0001
  norm       = 3.02694
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25208
  Prefactor  = 0.948583
 **********
 **   18 **HESSE 
 **********

 FCN=   8900.581     FROM HESSE     STATUS=OK           471 CALLS     2919 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.770        34.550        .20128E-02   -1.4712    
   2  norm          13.137        25.509        .27644E-02   -1.4983    
   3  norm          3.4494        .39009        .41631E-02   -1.5336    
   4  Prefactor     72.938        55.779        .11720E-02   -1.3998    
   5  norm          .35928        5.3786        .91007E-01   -1.5588    
   6  norm          .18030        6.4965        .10331       -1.5623    
   7  Prefactor     .18270        3.5171        .99316E-01   -1.5622    
   8  Prefactor     .72032        8.7072        .12290       -1.5538    
   9  Prefactor     18.714        9.7710        .23153E-02   -1.4842    
  10  Prefactor     .10000E-03    8.7598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9235        1.3208        .59390E-02   -1.5366    
  12  norm          1.9956        2.5472        .73342E-02   -1.5425    
  13  norm          2.5544        5.5616        .63849E-02   -1.5388    
  14  norm          2.2769        21.673        .68081E-02   -1.5406    
  15  Prefactor     .10000E-03    3.6715        .55316E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.297        19.099        .31227E-02   -1.5066    
  17  Prefactor     8.4280        59.225        .34262E-02   -1.5127    
  18  norm          20.835        9.1519        .21942E-02   -1.4795    
  19  Prefactor     .10000E-03    7.0889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0269        1.9111        .58321E-02   -1.5360    
  21  Prefactor     .10000E-03    15.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2521        .21848        .73987E-01   -.85008    
  24  Prefactor     .94858        .13962        .45615E-01   -.94464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8446e-07
Minuit parameter uncertainties:
  1  34.5775
  2  25.5298
  3  0.390089
  4  55.8188
  5  2.78013
  6  2.16421
  7  1.60288
  8  5.00933
  9  9.77178
  10  2.18518e-05
  11  1.32077
  12  2.54732
  13  5.56273
  14  14.0559
  15  3.23696e-05
  16  19.1102
  17  44.7464
  18  9.1525
  19  1.16292e-05
  20  1.91116
  21  0.000102112
  22  4.02584e-06
  23  0.218644
  24  0.139678
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.923e+00  1.321e+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.486e-01  1.397e-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.252e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.27
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.20e-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) = 8900.18648508
delta logL = 0.39404577696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8900.17696665
delta logL = 0.40356420717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0014       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9797       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93555       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=   8900.177     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0014        1.7823        .58574E-02    .32541E-03
   2  alpha         1.9796        .51127        .37902       -.11647E-04
   3  Normalizat    1.2825        .20870        .73260E-01    .14451E-04
   4  Prefactor     .93556        .13704        .45456E-01    .13719E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.00142
  alpha      = 1.97962
  Normalizat = 1.28248
  Prefactor  = 0.935556
 **********
 **   18 **HESSE 
 **********

 FCN=   8900.177     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0014        1.4269        .73697E-04   -1.5361    
   2  alpha         1.9796        .45513        .15047E-01   -.20968    
   3  Normalizat    1.2825        .24920        .32419E-03   -.84091    
   4  Prefactor     .93556        .16327        .24470E-03   -.94910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50326e-11
Minuit parameter uncertainties:
  1  1.42696
  2  0.457802
  3  0.249433
  4  0.163352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734755': 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) = 8900.17696664
delta logL = 0.403564212638

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.001e+00  1.427e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.980e+00  4.578e-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.356e-01  1.634e-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.282e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.99
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.98 +/- 0.46
Photon Flux (Free Index): 6.59e-08 +/- 4.00e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.47e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='2.98e-05', photon_flux_error='3.99e-08', dlogl='4.04e-01', energy_flux='2.66e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-08 01:39:46.328023', photon_index_error2='0.46', photon_index2='1.98', ts='11.27', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.25', time_epoch_completed='1631090386.33', return_code='0', job_id='734755', GAL2='0.94', EG2='1.28', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.00e-08', ts2='11.99', photon_index='2.39' WHERE bin_id='124' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 734755: <4FGL_J1332.0-0509_daily_bin124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin124 203.02 -5.1611 271468801 271728001 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 :                                   599.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            838 sec.

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

