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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin785
RA = 203.02, Dec = -5.1611
tmin = 442800001, tmax = 443059201
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='738881', job_status='RUN', time_executed='2021-09-08 01:45:21.203635', time_epoch_executed='1631090721.2' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738881

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738881/ft1_4FGL_J1332.0-0509_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738881/ft1_4FGL_J1332.0-0509_daily_bin785.fits outfile=/scratch/kocevski/738881/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin785.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=442800001.0 tmax=443059201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.49
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.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/738881/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.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/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/738881/ltcube_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.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/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits
.....................!
real 15.39
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/738881/ltcube_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.fits outfile=/scratch/kocevski/738881/expmap_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.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/738881/ltcube_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.fits
.....................!
real 193.95
user 187.56
sys 5.84

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/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.fits scfile=/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits outfile=/scratch/kocevski/738881/cmap_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/738881/ft2_4FGL_J1332.0-0509_daily_bin785.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738881/Model_4FGL_J1332.0-0509_daily_bin785.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/738881/ft1_filtered_4FGL_J1332.0-0509_daily_bin785.fits.....................!
real 58.39
user 56.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.402       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2598       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6189       1.0000         .10000E-03   10000.    
    12 'norm      '    12.035       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2671       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16216E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.262       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15243       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3592       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0156       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=   7241.207     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2695 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.389        43.160       -.41899E-05   -.35796E-03
   2  norm          .10000E-03    14.882       -.65491E-06** at limit **
   3  norm          1.3906        .32645        .40380E-07   -.81891E-03
   4  Prefactor     .10000E-03    26.015       -.14803E-05** at limit **
   5  norm          5.2598        12.060        .41705E-05   -.52102E-03
   6  norm          .10000E-03    5.8993       -.25613E-07** at limit **
   7  Prefactor     .10000E-03    2.9351        .12356E-07** at limit **
   8  Prefactor     5.2312        18.326        .43091E-06    .27324E-04
   9  Prefactor     19.449        13.074        .12297E-06    .68612E-04
  10  Prefactor     .10000E-03    9.5834        .10426E-05** at limit **
  11  norm          3.6193        1.8979       -.19555E-07   -.97149E-04
  12  norm          12.036        4.5902        .12276E-06    .23995E-03
  13  norm          8.2675        6.5193        .60045E-07    .96776E-04
  14  norm          .10000E-03    8.6754       -.10779E-05** at limit **
  15  Prefactor     .10001E-03    4.8762       -.49674E-06** at limit **
  16  Prefactor     19.956        17.743        .40038E-06    .50331E-04
  17  Prefactor     .10000E-03    12.284       -.42204E-06** at limit **
  18  norm          18.264        10.332       -.33749E-07    .23753E-03
  19  Prefactor     .10000E-03    9.3798        .87586E-06** at limit **
  20  norm          .15321        1.4658        .11586E-06   -.20712E-04
  21  Prefactor     .10000E-03    24.775        .74244E-06** at limit **
  22  norm          .10000E-03    17.396        .18602E-05** at limit **
  23  Normalizat    1.3589        .24755       -.83072E-06    .44790E-04
  24  Prefactor     1.0157        .15622       -.84426E-07    .36195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.389
  norm       = 0.0001
  norm       = 1.39056
  Prefactor  = 0.000100001
  norm       = 5.25983
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23123
  Prefactor  = 19.4485
  Prefactor  = 0.0001
  norm       = 3.61926
  norm       = 12.0362
  norm       = 8.26751
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 19.9555
  Prefactor  = 0.0001
  norm       = 18.2643
  Prefactor  = 0.0001
  norm       = 0.153212
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.35891
  Prefactor  = 1.01572
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.207     FROM HESSE     STATUS=OK           401 CALLS     3096 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.389        46.102        .57637E-04   -1.4316    
   2  norm          .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3906        .32983        .21815E-04   -1.5472    
   4  Prefactor     .10000E-03    26.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2598        13.490        .87630E-03   -1.5249    
   6  norm          .10000E-03    5.9073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9397        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2312        18.403        .17579E-03   -1.5250    
   9  Prefactor     19.449        13.143        .90828E-04   -1.4826    
  10  Prefactor     .10000E-03    9.6656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6193        1.8987        .79836E-04   -1.5327    
  12  norm          12.036        4.5861        .10513E-03   -1.5014    
  13  norm          8.2675        6.5064        .13943E-03   -1.5133    
  14  norm          .10000E-03    8.7655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    12.947        .33146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.956        17.797        .89663E-04   -1.4814    
  17  Prefactor     .10000E-03    12.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.264        9.6535        .93724E-04   -1.4853    
  19  Prefactor     .10000E-03    9.5070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .15321        21.241        .19218E-02   -1.5630    
  21  Prefactor     .10000E-03    24.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3589        .29384        .31936E-03   -.81825    
  24  Prefactor     1.0157        .18543        .24137E-03   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39731e-08
Minuit parameter uncertainties:
  1  46.1357
  2  9.08847e-05
  3  0.329833
  4  0.000288113
  5  13.498
  6  3.26946e-06
  7  5.49463e-08
  8  18.4233
  9  13.1452
  10  0.000110571
  11  1.89872
  12  4.58622
  13  6.50698
  14  0.000121544
  15  0.000509537
  16  17.8014
  17  5.56217e-05
  18  9.65428
  19  9.51142e-05
  20  3.6081
  21  0.000134897
  22  0.000274654
  23  0.294204
  24  0.18555
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.619e+00  1.899e+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.016e+00  1.856e-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.359e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.74e-08
Energy Flux (Fixed Index): 3.29e-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) = 7240.83506213
delta logL = 0.372069736584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7240.83075393
delta logL = 0.376377940752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9699       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       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=   7240.831     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      234 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9895        20.392        .58697E-02    .16112E-02
   2  alpha         2.9698        3.9660        .34906        .48393E-04
   3  Normalizat    1.2803        .10352        .73944E-01    .13130E-04
   4  Prefactor     1.0529        .61303E-01    .39747E-01    .73155E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98951
  alpha      = 2.9698
  Normalizat = 1.28031
  Prefactor  = 1.05286
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.831     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9895        2.1371        .63949E-04   -1.5362    
   2  alpha         2.9698        .74990        .13640E-01    .18905    
   3  Normalizat    1.2803        .29470        .32723E-03   -.84156    
   4  Prefactor     1.0529        .19058        .23765E-03   -.90988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98785e-09
Minuit parameter uncertainties:
  1  2.13711
  2  0.762077
  3  0.295087
  4  0.190701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738881': 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) = 7240.83075391
delta logL = 0.37637796494

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.990e+00  2.137e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.970e+00  7.621e-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.053e+00  1.907e-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.280e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.23
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.97 +/- 0.76
Photon Flux (Free Index): 1.60e-07 +/- 8.82e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.60e-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/738881/cmap_HighResolution_442800001_443059201_4FGL_J1332.0-0509_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.41e-05', photon_flux_error='5.74e-08', dlogl='3.76e-01', energy_flux='3.29e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-08 01:56:20.255717', photon_index_error2='0.76', photon_index2='2.97', ts='6.34', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.36', time_epoch_completed='1631091380.26', return_code='0', job_id='738881', GAL2='1.05', EG2='1.28', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='8.82e-08', ts2='7.23', photon_index='2.39' WHERE bin_id='785' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 738881: <4FGL_J1332.0-0509_daily_bin785> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin785> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:42 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:01 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:42:01 2021
Terminated at Wed Sep  8 01:56:21 2021
Results reported at Wed Sep  8 01:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin785 203.02 -5.1611 442800001 443059201 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 :                                   657.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            939 sec.

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

