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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin939
RA = 203.02, Dec = -5.1611
tmin = 482716801, tmax = 482976001
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='740219', job_status='RUN', time_executed='2021-09-08 01:48:47.907715', time_epoch_executed='1631090927.91' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740219/ft1_4FGL_J1332.0-0509_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740219/ft1_4FGL_J1332.0-0509_daily_bin939.fits outfile=/scratch/kocevski/740219/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin939.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=482716801.0 tmax=482976001.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.72
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740219/ft1_filtered_4FGL_J1332.0-0509_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/740219/ltcube_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.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/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits
.....................!
real 16.41
user 15.95
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740219/ft1_filtered_4FGL_J1332.0-0509_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/740219/ltcube_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.fits outfile=/scratch/kocevski/740219/expmap_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.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/740219/ltcube_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.fits
.....................!
real 193.13
user 187.23
sys 5.37

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/740219/ft1_filtered_4FGL_J1332.0-0509_daily_bin939.fits scfile=/scratch/kocevski/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits outfile=/scratch/kocevski/740219/cmap_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740219/ft1_filtered_4FGL_J1332.0-0509_daily_bin939.fits scfile=/scratch/kocevski/740219/ft2_4FGL_J1332.0-0509_daily_bin939.fits outfile=/scratch/kocevski/740219/cmap_HighResolution_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.630       1.0000         .10000E-03   10000.    
     2 'norm      '    56.697       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    173.46       1.0000         .10000E-03   10000.    
     5 'norm      '    16.251       1.0000         .10000E-03   10000.    
     6 'norm      '    .10253E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.236       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2749       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8714       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7046       1.0000         .10000E-03   10000.    
    14 'norm      '    23.045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.778       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .21511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.608       1.0000         .10000E-03   10000.    
    22 'norm      '    15.515       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4875       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64875       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=   6245.991     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2763 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.629        48.010        .30269E-06    .16488E-05
   2  norm          56.696        36.984        .22135E-06   -.21855E-05
   3  norm          1.0987        .34289        .27753E-08   -.61536E-04
   4  Prefactor     173.45        114.70        .73853E-06   -.55465E-05
   5  norm          16.251        13.203       -.10438E-06   -.45555E-04
   6  norm          .10000E-03    25.805        .11429E-05** at limit **
   7  Prefactor     .10000E-03    5.4930       -.73120E-06** at limit **
   8  Prefactor     .10000E-03    5.2759        .37474E-06** at limit **
   9  Prefactor     4.0980        9.0019        .35695E-05    .47257E-03
  10  Prefactor     81.230        29.720        .82102E-06    .12837E-03
  11  norm          6.2747        2.5469       -.10179E-08   -.43869E-04
  12  norm          4.8725        4.6651       -.45486E-06   -.64191E-04
  13  norm          3.7045        6.3677        .22521E-08    .31385E-04
  14  norm          23.041        33.511        .14038E-05    .15278E-04
  15  Prefactor     8.6256        7.0508        .87836E-06    .48478E-03
  16  Prefactor     .10000E-03    20.858       -.28774E-06** at limit **
  17  Prefactor     34.768        63.614        .25788E-05    .17013E-04
  18  norm          .10000E-03    4.6163       -.12090E-06** at limit **
  19  Prefactor     .10000E-03    5.2486        .42543E-06** at limit **
  20  norm          .20574        3.1645       -.23840E-05    .96933E-03
  21  Prefactor     16.602        35.260        .21910E-05    .53196E-05
  22  norm          15.515        14.222        .39535E-07   -.41652E-05
  23  Normalizat    1.4874        .24744       -.10189E-05    .34906E-04
  24  Prefactor     .64884        .15021       -.66322E-06    .39825E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.6285
  norm       = 56.6961
  norm       = 1.09873
  Prefactor  = 173.453
  norm       = 16.2509
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09796
  Prefactor  = 81.23
  norm       = 6.27471
  norm       = 4.87254
  norm       = 3.70455
  norm       = 23.0409
  Prefactor  = 8.62562
  Prefactor  = 0.0001
  Prefactor  = 34.7683
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.205735
  Prefactor  = 16.6024
  norm       = 15.5147
  Normalizat = 1.48737
  Prefactor  = 0.648838
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.991     FROM HESSE     STATUS=OK           403 CALLS     3166 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.629        48.131        .24403E-03   -1.4061    
   2  norm          56.696        36.999        .53276E-04   -1.4201    
   3  norm          1.0987        .34408        .23105E-04   -1.5498    
   4  Prefactor     173.45        115.19        .30638E-04   -1.3066    
   5  norm          16.251        13.194        .99351E-04   -1.4901    
   6  norm          .10000E-03    26.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5231        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2810        .17733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0980        9.5443        .99579E-03   -1.5303    
  10  Prefactor     81.230        29.733        .44562E-04   -1.3903    
  11  norm          6.2747        2.5672        .74019E-04   -1.5207    
  12  norm          4.8725        4.6483        .14040E-03   -1.5266    
  13  norm          3.7045        6.3511        .20982E-03   -1.5323    
  14  norm          23.041        33.589        .83440E-04   -1.4748    
  15  Prefactor     8.6256        7.1129        .68231E-03   -1.5120    
  16  Prefactor     .10000E-03    20.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.768        64.019        .67954E-04   -1.4528    
  18  norm          .10000E-03    4.6280        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2483        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20574        9.8601        .18105E-02   -1.5617    
  21  Prefactor     16.602        35.389        .98279E-04   -1.4893    
  22  norm          15.515        14.224        .10168E-03   -1.4920    
  23  Normalizat    1.4874        .29640        .29555E-03   -.78134    
  24  Prefactor     .64884        .17854        .26729E-03   -1.0557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09796e-09
Minuit parameter uncertainties:
  1  48.1585
  2  37.0145
  3  0.344082
  4  115.339
  5  13.1959
  6  8.04349e-05
  7  8.3345e-06
  8  1.01877e-05
  9  9.54785
  10  29.7381
  11  2.56725
  12  4.64867
  13  6.35222
  14  33.6165
  15  7.11357
  16  1.12248e-05
  17  64.1454
  18  8.195e-06
  19  2.16664e-06
  20  2.84837
  21  35.434
  22  14.2274
  23  0.296745
  24  0.178698
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.275e+00  2.567e+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:  6.488e-01  1.787e-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.487e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.15
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.90e-07 +/- 7.76e-08
Energy Flux (Fixed Index): 5.71e-05 +/- 2.34e-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) = 6242.50399047
delta logL = 3.48705323795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6242.44243979
delta logL = 3.54860391981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7503       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75537       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=   6242.442     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7488        10.272        .61368E-02    .18115E-02
   2  alpha         3.7630        4.0944        .18945        .11240E-03
   3  Normalizat    1.2590        .11777        .71244E-01   -.17392E-03
   4  Prefactor     .75497        .77862E-01    .43134E-01   -.16487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.74881
  alpha      = 3.76299
  Normalizat = 1.25898
  Prefactor  = 0.754971
 **********
 **   18 **HESSE 
 **********

 FCN=   6242.442     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7488        2.1202        .36791E-04   -1.5376    
   2  alpha         3.7630        .62019        .83777E-03    .52961    
   3  Normalizat    1.2590        .29151        .31524E-03   -.84799    
   4  Prefactor     .75497        .17846        .24951E-03   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91187e-10
Minuit parameter uncertainties:
  1  2.12024
  2  0.629067
  3  0.291886
  4  0.178599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740219': 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) = 6242.44243554
delta logL = 3.54860817013

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.749e+00  2.120e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  3.763e+00  6.291e-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:  7.550e-01  1.786e-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.259e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.43
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 3.76 +/- 0.63
Photon Flux (Free Index): 3.76e-07 +/- 1.20e-07
Energy Flux (Free Index): 6.20e-05 +/- 1.95e-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/740219/cmap_HighResolution_482716801_482976001_4FGL_J1332.0-0509_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.90e-07', energy_flux2='6.20e-05', photon_flux_error='7.76e-08', dlogl='3.55e+00', energy_flux='5.71e-05', photon_flux2='3.76e-07', job_status='DONE', time_completed='2021-09-08 01:59:05.462029', photon_index_error2='0.63', photon_index2='3.76', ts='9.15', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.49', time_epoch_completed='1631091545.46', return_code='0', job_id='740219', GAL2='0.75', EG2='1.26', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='1.20e-07', ts2='17.43', photon_index='2.39' WHERE bin_id='939' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 740219: <4FGL_J1332.0-0509_daily_bin939> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin939> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:36 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:41 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:45:41 2021
Terminated at Wed Sep  8 01:59:06 2021
Results reported at Wed Sep  8 01:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin939 203.02 -5.1611 482716801 482976001 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 :                                   614.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            810 sec.

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

