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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin575
RA = 203.02, Dec = -5.1611
tmin = 388368001, tmax = 388627201
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='737450', job_status='RUN', time_executed='2021-09-08 01:40:16.043684', time_epoch_executed='1631090416.04' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737450/ft1_4FGL_J1332.0-0509_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737450/ft1_4FGL_J1332.0-0509_daily_bin575.fits outfile=/scratch/kocevski/737450/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin575.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=388368001.0 tmax=388627201.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.47
user 4.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/737450/ltcube_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.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/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits
.....................!
real 14.99
user 14.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/737450/ltcube_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.fits outfile=/scratch/kocevski/737450/expmap_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.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/737450/ltcube_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.fits
.....................!
real 191.73
user 185.92
sys 5.20

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/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits scfile=/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits outfile=/scratch/kocevski/737450/cmap_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits scfile=/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits outfile=/scratch/kocevski/737450/cmap_HighResolution_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.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/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/737450/ft2_4FGL_J1332.0-0509_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737450/Model_4FGL_J1332.0-0509_daily_bin575.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/737450/ft1_filtered_4FGL_J1332.0-0509_daily_bin575.fits.....................!
real 55.99
user 54.53
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.992       1.0000         .10000E-03   10000.    
     3 'norm      '    .42610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.932       1.0000         .10000E-03   10000.    
     6 'norm      '    .10751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6684       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0373       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.431       1.0000         .10000E-03   10000.    
    14 'norm      '    37.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.758       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.468       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1448       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    39.792       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2393       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=   6932.183     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2687 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.673        .27030E-07** at limit **
   2  norm          21.989        27.135       -.88408E-06    .24303E-04
   3  norm          .42601        .23262       -.82553E-08   -.11911E-03
   4  Prefactor     .10000E-03    16.396       -.30684E-06** at limit **
   5  norm          22.935        13.394       -.35915E-05    .53100E-03
   6  norm          .10004E-03    7.0604        .83744E-07** at limit **
   7  Prefactor     7.0101        6.8980        .13702E-05   -.19689E-03
   8  Prefactor     .10000E-03    6.4812       -.17780E-07** at limit **
   9  Prefactor     .10000E-03    3.4464        .41223E-07** at limit **
  10  Prefactor     7.6653        13.296        .52144E-06    .26189E-05
  11  norm          3.0373        1.8564        .37580E-08   -.14383E-03
  12  norm          .10000E-03    1.9458        .21330E-07** at limit **
  13  norm          10.428        9.0126       -.34344E-06    .25508E-03
  14  norm          37.107        43.403       -.94415E-05    .21669E-03
  15  Prefactor     1.9256        6.0448       -.65183E-05   -.34758E-03
  16  Prefactor     .10000E-03    7.7176       -.24591E-06** at limit **
  17  Prefactor     38.753        41.746       -.49500E-05    .16790E-03
  18  norm          .10000E-03    3.4045        .28569E-06** at limit **
  19  Prefactor     16.463        15.985        .35607E-05   -.32672E-03
  20  norm          5.1445        2.7451       -.16789E-07    .77666E-04
  21  Prefactor     .10000E-03    15.453        .26444E-06** at limit **
  22  norm          39.789        21.066        .38840E-06   -.52905E-04
  23  Normalizat    1.1458        .24230        .10290E-05    .11204E-03
  24  Prefactor     1.2395        .16022        .12488E-05    .88766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 21.9888
  norm       = 0.426014
  Prefactor  = 0.0001
  norm       = 22.9347
  norm       = 0.000100036
  Prefactor  = 7.01011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.6653
  norm       = 3.03727
  norm       = 0.0001
  norm       = 10.4279
  norm       = 37.1075
  Prefactor  = 1.92563
  Prefactor  = 0.0001
  Prefactor  = 38.7528
  norm       = 0.0001
  Prefactor  = 16.4626
  norm       = 5.14453
  Prefactor  = 0.0001
  norm       = 39.7891
  Normalizat = 1.14582
  Prefactor  = 1.23948
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.183     FROM HESSE     STATUS=OK           403 CALLS     3090 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.989        27.132        .85412E-04   -1.4770    
   3  norm          .42601        .23022        .28335E-04   -1.5577    
   4  Prefactor     .10000E-03    16.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.935        13.326        .83644E-04   -1.4750    
   6  norm          .10004E-03    8.7524        .78202E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0101        6.8920        .15152E-03   -1.5178    
   8  Prefactor     .10000E-03    6.4875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4536        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6653        13.241        .14481E-03   -1.5154    
  11  norm          3.0373        1.8531        .83869E-04   -1.5359    
  12  norm          .10000E-03    1.9505        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.428        8.9427        .12406E-03   -1.5062    
  14  norm          37.107        43.220        .65784E-04   -1.4489    
  15  Prefactor     1.9256        6.3626        .29943E-03   -1.5430    
  16  Prefactor     .10000E-03    7.7230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.753        41.551        .64381E-04   -1.4462    
  18  norm          .10000E-03    3.4184        .15002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.463        15.884        .98697E-04   -1.4896    
  20  norm          5.1445        2.7447        .97197E-04   -1.5254    
  21  Prefactor     .10000E-03    15.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          39.789        21.076        .63542E-04   -1.4446    
  23  Normalizat    1.1458        .28499        .34928E-03   -.88294    
  24  Prefactor     1.2395        .18962        .22548E-03   -.85125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24226e-09
Minuit parameter uncertainties:
  1  2.14395e-05
  2  27.1475
  3  0.230216
  4  3.24429e-05
  5  13.328
  6  0.00111965
  7  6.89277
  8  1.42873e-06
  9  8.28587e-07
  10  13.2464
  11  1.85309
  12  5.85457e-06
  13  8.94381
  14  43.2564
  15  6.36484
  16  1.19634e-05
  17  41.5818
  18  4.07305e-05
  19  15.8882
  20  2.74479
  21  6.04441e-05
  22  21.0802
  23  0.285376
  24  0.18972
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.037e+00  1.853e+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.239e+00  1.897e-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.146e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 5.60e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.69e-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) = 6932.1701029
delta logL = 0.0126822110587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6932.16731854
delta logL = 0.0154665739001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9299       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5550       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2477       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6932.167     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9300        2.0088        .80541E-04   -.23008E-04
   2  alpha         2.5551        .94878        .19707E-01    .97312E-04
   3  Normalizat    1.1286        .29825        .35158E-03    .31075E-04
   4  Prefactor     1.2477        .19267        .22486E-03    .11484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93002
  alpha      = 2.55507
  Normalizat = 1.12863
  Prefactor  = 1.24768
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.167     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9300        1.9542        .32217E-05   -1.5366    
   2  alpha         2.5551        .92182        .39415E-02    .22028E-01
   3  Normalizat    1.1286        .29750        .14063E-04   -.88838    
   4  Prefactor     1.2477        .19232        .44972E-04   -.84876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27264e-11
Minuit parameter uncertainties:
  1  1.95426
  2  0.944113
  3  0.297946
  4  0.192432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737450': 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) = 6932.16731845
delta logL = 0.0154666582912

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.930e+00  1.954e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.555e+00  9.441e-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.248e+00  1.924e-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.129e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.56 +/- 0.94
Photon Flux (Free Index): 1.03e-07 +/- 8.73e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/737450/cmap_HighResolution_388368001_388627201_4FGL_J1332.0-0509_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='2.75e-05', photon_flux_error='5.60e-08', dlogl='1.55e-02', energy_flux='2.76e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-08 01:50:46.738146', photon_index_error2='0.94', photon_index2='2.56', ts='4.37', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.15', time_epoch_completed='1631091046.74', return_code='0', job_id='737450', GAL2='1.25', EG2='1.13', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.73e-08', ts2='4.39', photon_index='2.39' WHERE bin_id='575' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 737450: <4FGL_J1332.0-0509_daily_bin575> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin575> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:44 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:56 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:37:56 2021
Terminated at Wed Sep  8 01:50:47 2021
Results reported at Wed Sep  8 01:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin575 203.02 -5.1611 388368001 388627201 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 :                                   630.00 sec.
    Max Memory :                                 1161 MB
    Average Memory :                             266.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            903 sec.

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

