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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin967
RA = 203.02, Dec = -5.1611
tmin = 489974401, tmax = 490233601
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='740263', job_status='RUN', time_executed='2021-09-08 01:48:16.130942', time_epoch_executed='1631090896.13' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740263/ft1_4FGL_J1332.0-0509_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740263/ft1_4FGL_J1332.0-0509_daily_bin967.fits outfile=/scratch/kocevski/740263/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin967.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=489974401.0 tmax=490233601.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.79
user 3.54
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/740263/ltcube_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.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/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits
.....................!
real 15.08
user 14.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/740263/ltcube_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.fits outfile=/scratch/kocevski/740263/expmap_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.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/740263/ltcube_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.fits
.....................!
real 192.54
user 187.28
sys 4.58

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/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits scfile=/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits outfile=/scratch/kocevski/740263/cmap_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits scfile=/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits outfile=/scratch/kocevski/740263/cmap_HighResolution_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/740263/ft2_4FGL_J1332.0-0509_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740263/Model_4FGL_J1332.0-0509_daily_bin967.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/740263/ft1_filtered_4FGL_J1332.0-0509_daily_bin967.fits....................!
real 67.91
user 66.31
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.933       1.0000         .10000E-03   10000.    
     2 'norm      '    45.242       1.0000         .10000E-03   10000.    
     3 'norm      '    .87958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4708       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.970       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7652       1.0000         .10000E-03   10000.    
    12 'norm      '    24.363       1.0000         .10000E-03   10000.    
    13 'norm      '    .26816E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12796E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6017       1.0000         .10000E-03   10000.    
    18 'norm      '    10.798       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8875       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5338       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72159       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=   8862.479     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2711 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.935        29.380        .76253E-06    .54423E-04
   2  norm          45.243        24.316        .24948E-06    .76813E-04
   3  norm          .87960        .22560       -.64999E-08    .35805E-03
   4  Prefactor     .10001E-03    16.980       -.59662E-05** at limit **
   5  norm          .10000E-03    2.6888        .18591E-07** at limit **
   6  norm          4.9305        4.7560       -.13895E-05    .11298E-02
   7  Prefactor     4.4706        6.5726        .33779E-05   -.11990E-02
   8  Prefactor     .10000E-03    4.4468        .55888E-06** at limit **
   9  Prefactor     2.2676        8.0533       -.49981E-07   -.13974E-03
  10  Prefactor     20.967        19.601       -.76139E-06   -.13616E-03
  11  norm          3.7653        1.7092        .40930E-07   -.12832E-03
  12  norm          24.359        6.3160        .46809E-07   -.14379E-03
  13  norm          .10000E-03    3.1661        .11008E-06** at limit **
  14  norm          15.790        26.458       -.28890E-05   -.24348E-03
  15  Prefactor     .10000E-03    1.7775       -.54493E-07** at limit **
  16  Prefactor     .10001E-03    15.677        .60001E-05** at limit **
  17  Prefactor     4.5943        48.451       -.69180E-05   -.13767E-03
  18  norm          10.793        5.6542        .26441E-07   -.29734E-05
  19  Prefactor     .10000E-03    4.5461       -.34231E-06** at limit **
  20  norm          2.8875        1.9241        .33254E-07   -.87511E-04
  21  Prefactor     .10000E-03    17.225        .94289E-07** at limit **
  22  norm          .10000E-03    6.2366       -.20910E-06** at limit **
  23  Normalizat    1.5338        .19915       -.27385E-06   -.15721E-04
  24  Prefactor     .72159        .12677        .22270E-06   -.50240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9348
  norm       = 45.2425
  norm       = 0.879601
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 4.9305
  Prefactor  = 4.47056
  Prefactor  = 0.0001
  Prefactor  = 2.2676
  Prefactor  = 20.9674
  norm       = 3.76527
  norm       = 24.3589
  norm       = 0.0001
  norm       = 15.7896
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 4.59427
  norm       = 10.7932
  Prefactor  = 0.0001
  norm       = 2.88747
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.53376
  Prefactor  = 0.721586
 **********
 **   18 **HESSE 
 **********

 FCN=   8862.479     FROM HESSE     STATUS=OK           403 CALLS     3114 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.935        29.456        .97330E-04   -1.4885    
   2  norm          45.243        24.320        .59608E-04   -1.4362    
   3  norm          .87960        .22644        .21392E-04   -1.5520    
   4  Prefactor     .10001E-03    17.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6972        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9305        4.8793        .90567E-03   -1.5264    
   7  Prefactor     4.4706        7.0331        .95215E-03   -1.5285    
   8  Prefactor     .10000E-03    4.4616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2676        8.0411        .27276E-03   -1.5407    
  10  Prefactor     20.967        19.672        .87467E-04   -1.4792    
  11  norm          3.7653        1.7121        .77777E-04   -1.5320    
  12  norm          24.359        6.0074        .81156E-04   -1.4720    
  13  norm          .10000E-03    23.815        .29702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.790        26.787        .10078E-03   -1.4913    
  15  Prefactor     .10000E-03    3.3503        .23941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    16.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5943        50.158        .18764E-03   -1.5279    
  18  norm          10.793        5.5869        .12192E-03   -1.5051    
  19  Prefactor     .10000E-03    4.5703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8875        1.9201        .10271E-03   -1.5368    
  21  Prefactor     .10000E-03    17.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5338        .23452        .28087E-03   -.76834    
  24  Prefactor     .72159        .14832        .25440E-03   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2896e-09
Minuit parameter uncertainties:
  1  29.4808
  2  24.3257
  3  0.226441
  4  0.000931839
  5  4.75272e-07
  6  4.8797
  7  7.03444
  8  4.16832e-05
  9  8.04492
  10  19.6779
  11  1.7121
  12  6.00753
  13  1.93449e-05
  14  26.8073
  15  2.75282e-05
  16  0.000867988
  17  30.3925
  18  5.58714
  19  3.1014e-05
  20  1.9201
  21  4.53035e-06
  22  2.15518e-05
  23  0.234682
  24  0.148396
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.765e+00  1.712e+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:  7.216e-01  1.484e-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.534e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.18e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 1.56e-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) = 8861.99398439
delta logL = 0.484536986169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8861.98078894
delta logL = 0.497732435322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7575       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9362       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74708       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=   8861.981     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7574        2.0383        .62281E-04    .18864E-02
   2  alpha         2.9362        .65445        .12599E-01    .96598E-04
   3  Normalizat    1.4846        .23396        .28453E-03   -.12816E-03
   4  Prefactor     .74710        .14957        .25056E-03   -.24964E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75741
  alpha      = 2.93624
  Normalizat = 1.48459
  Prefactor  = 0.747096
 **********
 **   18 **HESSE 
 **********

 FCN=   8861.981     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7574        1.8728        .24912E-05   -1.5376    
   2  alpha         2.9362        .60185        .50396E-03    .17539    
   3  Normalizat    1.4846        .23397        .56905E-04   -.78212    
   4  Prefactor     .74710        .14941        .10023E-04   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73097e-10
Minuit parameter uncertainties:
  1  1.8728
  2  0.608016
  3  0.234139
  4  0.149494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740263': 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) = 8861.98078891
delta logL = 0.497732465748

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.757e+00  1.873e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.936e+00  6.080e-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.471e-01  1.495e-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.485e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.24
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.94 +/- 0.61
Photon Flux (Free Index): 1.43e-07 +/- 6.37e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.40e-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/740263/cmap_HighResolution_489974401_490233601_4FGL_J1332.0-0509_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.08e-05', photon_flux_error='5.18e-08', dlogl='4.98e-01', energy_flux='3.43e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-08 02:00:58.622757', photon_index_error2='0.61', photon_index2='2.94', ts='7.20', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.53', time_epoch_completed='1631091658.62', return_code='0', job_id='740263', GAL2='0.75', EG2='1.48', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.37e-08', ts2='8.24', photon_index='2.39' WHERE bin_id='967' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 740263: <4FGL_J1332.0-0509_daily_bin967> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin967 203.02 -5.1611 489974401 490233601 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            919 sec.

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

