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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin950
RA = 203.02, Dec = -5.1611
tmin = 485568001, tmax = 485827201
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='740236', job_status='RUN', time_executed='2021-09-08 01:49:23.629840', time_epoch_executed='1631090963.63' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740236/ft1_4FGL_J1332.0-0509_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740236/ft2_4FGL_J1332.0-0509_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740236/ft1_4FGL_J1332.0-0509_daily_bin950.fits outfile=/scratch/kocevski/740236/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin950.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=485568001.0 tmax=485827201.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.08
user 3.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740236/ft1_filtered_4FGL_J1332.0-0509_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/740236/ft2_4FGL_J1332.0-0509_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/740236/ltcube_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.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/740236/ft2_4FGL_J1332.0-0509_daily_bin950.fits
.....................!
real 17.27
user 16.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740236/ft1_filtered_4FGL_J1332.0-0509_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/740236/ft2_4FGL_J1332.0-0509_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/740236/ltcube_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.fits outfile=/scratch/kocevski/740236/expmap_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.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/740236/ltcube_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.fits
.....................!
real 195.27
user 188.02
sys 4.31

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/740236/ft1_filtered_4FGL_J1332.0-0509_daily_bin950.fits scfile=/scratch/kocevski/740236/ft2_4FGL_J1332.0-0509_daily_bin950.fits outfile=/scratch/kocevski/740236/cmap_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.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.58
user 0.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7573       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8893       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .58378       1.0000         .10000E-03   10000.    
    12 'norm      '    13.459       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3278       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2573       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.000       1.0000         .10000E-03   10000.    
    22 'norm      '    10.438       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6341       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .54347       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=   8093.677     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2331 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.866       -.54944E-05** at limit **
   2  norm          .10000E-03    13.882       -.11535E-05** at limit **
   3  norm          2.4063        .33261        .21951E-08   -.11462E-03
   4  Prefactor     .10000E-03    17.482        .13323E-04** at limit **
   5  norm          1.7574        1.7914        .22254E-06   -.18222E-02
   6  norm          .10000E-03    3.0430        .12898E-07** at limit **
   7  Prefactor     5.8889        7.1739        .55358E-07    .63942E-04
   8  Prefactor     .10000E-03    8.9632        .43899E-05** at limit **
   9  Prefactor     .10000E-03    7.4161       -.16673E-05** at limit **
  10  Prefactor     .10000E-03    23.489       -.79823E-05** at limit **
  11  norm          .58373        1.2067        .40953E-07   -.13859E-03
  12  norm          13.461        4.3454        .17494E-06    .10224E-02
  13  norm          1.3253        5.2681       -.40418E-06   -.43138E-04
  14  norm          .10000E-03    10.493       -.47407E-05** at limit **
  15  Prefactor     5.0655        3.7293        .57920E-07   -.84305E-03
  16  Prefactor     8.2564        14.941       -.53493E-06   -.75540E-05
  17  Prefactor     .10000E-03    9.3609        .22072E-05** at limit **
  18  norm          .10000E-03    2.8681       -.64288E-07** at limit **
  19  Prefactor     .10000E-03    13.924        .12279E-06** at limit **
  20  norm          .10000E-03    .62957        .30815E-07** at limit **
  21  Prefactor     39.002        30.628        .25214E-05    .51473E-05
  22  norm          10.438        9.7757       -.81957E-08    .53759E-04
  23  Normalizat    1.6340        .19023       -.30602E-06    .99383E-04
  24  Prefactor     .54353        .11635        .47080E-09    .69397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.40632
  Prefactor  = 0.0001
  norm       = 1.75738
  norm       = 0.0001
  Prefactor  = 5.88894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.583733
  norm       = 13.4612
  norm       = 1.32527
  norm       = 0.0001
  Prefactor  = 5.06546
  Prefactor  = 8.25643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.0022
  norm       = 10.438
  Normalizat = 1.63404
  Prefactor  = 0.543533
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.677     FROM HESSE     STATUS=OK           395 CALLS     2726 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4063        .33441        .18395E-04   -1.5398    
   4  Prefactor     .10000E-03    17.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7574        5.0420        .15807E-02   -1.5443    
   6  norm          .10000E-03    3.0526        .15327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8889        7.1679        .16548E-03   -1.5223    
   8  Prefactor     .10000E-03    8.9963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .58373        1.1995        .13256E-03   -1.5555    
  12  norm          13.461        4.2205        .88230E-04   -1.4974    
  13  norm          1.3253        5.1313        .34349E-03   -1.5478    
  14  norm          .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0655        3.8157        .72444E-03   -1.5258    
  16  Prefactor     8.2564        14.946        .13952E-03   -1.5133    
  17  Prefactor     .10000E-03    9.3646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9131        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .65401        .13936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.002        30.667        .64182E-04   -1.4458    
  22  norm          10.438        9.7789        .62008E-03   -1.5062    
  23  Normalizat    1.6340        .22154        .25651E-03   -.74078    
  24  Prefactor     .54353        .13452        .26463E-03   -1.1002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09044e-09
Minuit parameter uncertainties:
  1  1.31472e-05
  2  1.13589e-06
  3  0.334405
  4  4.11763e-05
  5  5.04319
  6  4.18209e-07
  7  7.16898
  8  5.30359e-06
  9  1.78435e-05
  10  9.30338e-06
  11  1.19952
  12  4.22064
  13  5.13304
  14  9.94549e-06
  15  3.8159
  16  14.9531
  17  5.65921e-06
  18  8.74592e-07
  19  4.50509e-05
  20  1.63597e-07
  21  30.6795
  22  9.78044
  23  0.221671
  24  0.134595
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.837e-01  1.200e+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:  5.435e-01  1.346e-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.634e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740236/likelihoodResults_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.txt

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) = 8092.68870781
delta logL = 0.988482005292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8092.68040314
delta logL = 0.99678667313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26053       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3188       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57527       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8092.680     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      264 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25924        6.6458        .33784E-03   -.23756E-02
   2  alpha         4.3223        2.8155        .16239       -.10743E-04
   3  Normalizat    1.5574        .12100        .26139E-03   -.11176E-03
   4  Prefactor     .57525        .76798E-01    .25785E-03   -.77069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.25924
  alpha      = 4.32233
  Normalizat = 1.55735
  Prefactor  = 0.57525
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.680     FROM HESSE     STATUS=OK            27 CALLS      291 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25924        .58883        .13514E-04   -1.5606    
   2  alpha         4.3223        1.4231        .28172E-02    .81676    
   3  Normalizat    1.5574        .22050        .52279E-04   -.76179    
   4  Prefactor     .57525        .13649        .10314E-04   -1.0864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80199e-10
Minuit parameter uncertainties:
  1  0.588846
  2  1.68036
  3  0.220635
  4  0.13657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740236': 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) = 8092.68040015
delta logL = 0.996789663313

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.592e-01  5.888e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.322e+00  1.680e+00  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:  5.753e-01  1.366e-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.557e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.32 +/- 1.68
Photon Flux (Free Index): 7.28e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.08e-05 +/- 8.50e-06

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/740236/cmap_HighResolution_485568001_485827201_4FGL_J1332.0-0509_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='9.97e-01', photon_flux2='7.28e-08', job_status='DONE', time_completed='2021-09-08 02:02:13.001298', photon_index_error2='1.68', photon_index2='4.32', ts='0.28', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='8.50e-06', EG='1.63', time_epoch_completed='1631091733.0', return_code='0', job_id='740236', GAL2='0.58', EG2='1.56', return_code2='0', photon_flux_error2='5.59e-08', ts2='2.39', photon_index='2.39' WHERE bin_id='950' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 740236: <4FGL_J1332.0-0509_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin950 203.02 -5.1611 485568001 485827201 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 :                                   753.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            995 sec.

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

