/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 141 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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin335
RA = 203.02, Dec = -5.1611
tmin = 326160001, tmax = 326419201
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='736016', job_status='RUN', time_executed='2021-09-08 01:34:48.414317', time_epoch_executed='1631090088.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736016/ft1_4FGL_J1332.0-0509_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736016/ft1_4FGL_J1332.0-0509_daily_bin335.fits outfile=/scratch/kocevski/736016/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin335.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=326160001.0 tmax=326419201.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.82
user 3.30
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/736016/ltcube_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.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/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits
.....................!
real 20.37
user 17.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/736016/ltcube_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.fits outfile=/scratch/kocevski/736016/expmap_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.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/736016/ltcube_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.fits
.....................!
real 194.82
user 187.61
sys 4.90

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/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits scfile=/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits outfile=/scratch/kocevski/736016/cmap_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits scfile=/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits outfile=/scratch/kocevski/736016/cmap_HighResolution_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/736016/ft2_4FGL_J1332.0-0509_daily_bin335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736016/Model_4FGL_J1332.0-0509_daily_bin335.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/736016/ft1_filtered_4FGL_J1332.0-0509_daily_bin335.fits.....................!
real 55.51
user 53.99
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.848       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.3718       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2223       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6039       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0474       1.0000         .10000E-03   10000.    
    12 'norm      '    .11162E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0036       1.0000         .10000E-03   10000.    
    14 'norm      '    14.385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .95257E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5220       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61870       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=   6876.114     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2776 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.899       -.13509E-04** at limit **
   2  norm          .10000E-03    17.170        .96336E-05** at limit **
   3  norm          2.0482        .34130       -.11589E-06    .13967E-02
   4  Prefactor     42.863        52.839        .19428E-04   -.10251E-04
   5  norm          .10000E-03    2.3227       -.70770E-07** at limit **
   6  norm          9.3717        9.3161       -.99091E-06   -.69110E-03
   7  Prefactor     18.043        10.053       -.94960E-06    .18981E-03
   8  Prefactor     6.2250        21.292        .36572E-05   -.33627E-04
   9  Prefactor     6.7633        7.3273       -.42409E-06    .35495E-04
  10  Prefactor     2.6234        30.586        .12171E-04    .34449E-03
  11  norm          1.0473        1.5210        .56845E-07   -.76784E-03
  12  norm          .10000E-03    2.5227       -.16330E-05** at limit **
  13  norm          7.0117        6.9600       -.17505E-05    .89416E-03
  14  norm          14.342        37.393       -.83401E-04    .49457E-05
  15  Prefactor     7.6469        5.3337       -.52017E-06    .26669E-03
  16  Prefactor     13.018        15.379        .18099E-05    .14095E-04
  17  Prefactor     .10000E-03    9.3073        .90622E-05** at limit **
  18  norm          .10001E-03    5.0161       -.58501E-06** at limit **
  19  Prefactor     .10000E-03    5.7817        .18817E-05** at limit **
  20  norm          6.0358        3.0483       -.17156E-06   -.76106E-04
  21  Prefactor     .10000E-03    35.550        .62448E-06** at limit **
  22  norm          .10000E-03    7.1284       -.48492E-05** at limit **
  23  Normalizat    1.5220        .22497       -.17126E-05    .40994E-03
  24  Prefactor     .61867        .13552        .49642E-05    .11068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.04825
  Prefactor  = 42.8625
  norm       = 0.0001
  norm       = 9.37165
  Prefactor  = 18.0435
  Prefactor  = 6.22499
  Prefactor  = 6.76328
  Prefactor  = 2.62338
  norm       = 1.04731
  norm       = 0.000100004
  norm       = 7.01166
  norm       = 14.342
  Prefactor  = 7.64691
  Prefactor  = 13.0181
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 6.03578
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.522
  Prefactor  = 0.618675
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.114     FROM HESSE     STATUS=OK           401 CALLS     3177 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0482        .34366        .18637E-04   -1.5422    
   4  Prefactor     42.863        52.866        .61243E-04   -1.4398    
   5  norm          .10000E-03    2.3243        .12341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.3717        9.3257        .65455E-03   -1.5096    
   7  Prefactor     18.043        10.040        .94294E-04   -1.4858    
   8  Prefactor     6.2250        21.351        .16093E-03   -1.5209    
   9  Prefactor     6.7633        7.3329        .15430E-03   -1.5188    
  10  Prefactor     2.6234        23.340        .25281E-03   -1.5384    
  11  norm          1.0473        1.4918        .11493E-03   -1.5503    
  12  norm          .10000E-03    5.1430        .20423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0117        6.6604        .15159E-03   -1.5178    
  14  norm          14.342        37.305        .10560E-03   -1.4950    
  15  Prefactor     7.6469        5.1074        .14496E-03   -1.5155    
  16  Prefactor     13.018        15.392        .11102E-03   -1.4986    
  17  Prefactor     .10000E-03    9.3053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    19.642        .34219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0358        3.0479        .98461E-04   -1.5217    
  21  Prefactor     .10000E-03    35.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.1353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5220        .26435        .27593E-03   -.77162    
  24  Prefactor     .61867        .15725        .25733E-03   -1.0681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12371e-09
Minuit parameter uncertainties:
  1  3.98832e-06
  2  5.93447e-05
  3  0.343658
  4  52.9243
  5  1.2824e-05
  6  9.3271
  7  10.0408
  8  21.3769
  9  7.33383
  10  15.6578
  11  1.49184
  12  0.000270965
  13  6.66109
  14  37.3652
  15  5.10771
  16  15.3965
  17  3.5458e-06
  18  0.000639048
  19  9.05773e-06
  20  3.04798
  21  8.37073e-05
  22  7.85414e-06
  23  0.264592
  24  0.157363
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.047e+00  1.492e+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.187e-01  1.574e-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.522e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736016/likelihoodResults_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.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) = 6875.45760451
delta logL = 0.656777233148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6875.4144579
delta logL = 0.699923845898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53296       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0023       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65716       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=   6875.414     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      223 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52978        6.4111        .98603E-02   -.11618E-02
   2  alpha         4.0072        4.3227        .50000       -.16553E-05
   3  Normalizat    1.4321        .56090E-01    .63943E-01   -.17480E-03
   4  Prefactor     .65738        .35506E-01    .41828E-01   -.10275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.529778
  alpha      = 4.00719
  Normalizat = 1.43214
  Prefactor  = 0.657378
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.414     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52978        14.794        .44778E-03   -1.5562    
   2  alpha         4.0072        2.8524        .24437E-01    .64710    
   3  Normalizat    1.4321        .21189        .28283E-03   -.79704    
   4  Prefactor     .65738        .13695        .25043E-03   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59849e-10
Minuit parameter uncertainties:
  1  5.60007
  2  8.20858
  3  0.21202
  4  0.137019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736016': 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): 102
logL (Free Index) = 6875.41445171
delta logL = 0.699930033899

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.298e-01  5.600e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.007e+00  8.209e+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:  6.574e-01  1.370e-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.432e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.01 +/- 8.21
Photon Flux (Free Index): 9.87e-08 +/- 7.43e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.64e-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/736016/cmap_HighResolution_326160001_326419201_4FGL_J1332.0-0509_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='7.00e-01', photon_flux2='9.87e-08', job_status='DONE', time_completed='2021-09-08 01:46:55.307444', photon_index_error2='8.21', photon_index2='4.01', ts='0.61', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.64e-05', EG='1.52', time_epoch_completed='1631090815.31', return_code='0', job_id='736016', GAL2='0.66', EG2='1.43', return_code2='102', photon_flux_error2='7.43e-08', ts2='2.15', photon_index='2.39' WHERE bin_id='335' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 736016: <4FGL_J1332.0-0509_daily_bin335> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin335> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:58 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:12 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:32:12 2021
Terminated at Wed Sep  8 01:46:56 2021
Results reported at Wed Sep  8 01:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin335 203.02 -5.1611 326160001 326419201 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 :                                   718.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            958 sec.

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

